Skip to content

OArnarsson/TDD-RockPaperScissors

Repository files navigation

RockPaperScissors Build Status

About the project

This small RockPaperScissors game was made to get some practice on both front-end back-end development. The game is constructed like so: The computer is rolling between all possible actions.
When the player locks in his action, the computer slows down the roll, eventually locking in an action. Player action vs Computer action is compared and corresponding result is displayed.

Heroku runs on the java spark application, therefore there can be some "lag" between user clicks and the response from the backend.
I intend to make another RockPaperScissors game using JavaScript only to see the performance difference.

Development manual

You can download the game from this repository or fork it to you own, after downloading, unzip the game to a folder of your choosing. In order to run the application it´s required to have Java jdk 1.8 or greater. If you do not have java 1.8 or greater installed you will need to download and install it to you computer. Java can be downloaded from the Oracle website. The game comes packed with a Gradle wrapper(gradlew 3.1) to set up the game follow the administration direction here below.
When making visual changes, you can navigate to '/src/main/resources/public' and run the grunt command.
Grunt is configured to compile the .scss files into the .css file linked in the html. Grunt also runs 'browserSync' to help you see what you're doing.

Useful gradle commands

This project comes packed with a Gradle wrapper (gradlew 3.1), so there is no need for local gradle setup. Simply run these simple commands in the project root directory ~/RockPaperScissors

./gradlew assemble - Assembles the outputs of the project.
./gradlew build - Builds the project and runs test in /src/test folder.
./gradlew stage - Builds creates a 'Build/' folder containing a deployable web application 
./gradlew tasks - Displays list of tasks.
gradlew assemble - For cmd/powershell users.
gradlew build - For cmd/powershell users.
gradlew stage - For cmd/powershell users.
gradlew tasks - For cmd/powershell users.

About

Small RockPaperScissors game made with Java Spark

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published