The famous hand game... in Java
- handsing-core : contains all the business code.
- handsign-web : a Spring-Boot application to bundle the game into a Web Application.
You can implement your own version of this game by extending the RuleEngine class. The RockPaperScissorRuleEngine is provided, we could easily implements the Rock-Paper-Scissors-Spock-Lizard alternative by example.
You have to build it from sources.
- Java 8 (JDK)
- Maven 3.x
- Clone this repository
- Build the handsign-core project
cd rockPaperScissors/handsign-core
mvn install
- The test coverage report is generated in target/site/jacoco
- build the handsign-web project
- change directory to
rockPaperScissors\handsign-web
mvn install
- the executable jar is generated into the target dir
- Run
java -jar rps-web-0.0.1-SNAPSHOT.jar
- Open your favorite browser on http://localhost:8080
The server default port is 8080 but you can change it with the
-Dserver.port
option Example :java -jar -Dserver.port=9000 rps-web-0.0.1-SNAPSHOT.jar