A repository containing Rock-Scissor-Paper project.
Rock-scissors-paper is a zero-sum hand game usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to run the project
Java Development Kit (JDK 8+) Maven Docker (if you want to run the project using Docker image)
Clone the repository git clone https://github.com/rezaep/Rock-Scissors-Paper.git
Use Maven build tool to build the project. This command runs tests and builds a Jar file. mvn clean test package
Run jar file using Java command. java -jar target/rock-scissors-paper-1.0-SNAPSHOT.jar
The example output will be:
Player A wins 36 of 100 games Player B wins 32 of 100 games Tie: 32 of 100 games Winner is: Player A (36 to 32 wins)
Running the tests
In order to run automated tests use below command.
mvn clean test
To package the Jar file inside a Docker image use following commands.
mvn clean test package docker build -t image:tag . (e.g. rezaep/rock-scissors-paper:latest)
- Reza Ebrahimpour - Github
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details