Skip to content

A true OO implementation of the rock, paper and scissors game

License

Notifications You must be signed in to change notification settings

goqp/rockpaperscissors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rockpaperscissors

rockpaperscissors is a is a true object-oriented implementation of the famous Rock, Paper and Scissors game.

What does true object-oriented means?

This application follows these four fundamental principles:

  1. not a single null (why NULL is bad?)
  2. not a single public static method (why they are bad?)
  3. not a single mutable class (why they are bad?)
  4. not a single instanceof keyword, type casting, or reflection (why?)

If you want to know more about true object-oriented programming, I recommend these books:

How use it?

First, build it:

$ mvn clean package

Then, run:

$ java -jar target/rockpaperscissors-<version>-jar-with-dependencies.jar

Change for the version found in pom.xml file.

License

The MIT License (MIT)

Copyright (c) 2017 Fabrício Barros Cabral

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

About

A true OO implementation of the rock, paper and scissors game

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%