This project is command-line application to score a game of ten-pin bowling.
The rules implemented were based on this bowling scores rules tutorial.
This project is written in Java 11 and use Apache Maven for building and managing dependencies. Using Apache Maven Assembly Plugin to package the application and its dependencies into a single .jar file.
Also, this project has some well-know libraries:
After cloning the project you'll need only to run a build with Maven.
$ mvn clean compile assembly:single
After compiling to run the application:
$ java -jar target/tenpinsbowling-1.0.0-SNAPSHOT-jar-with-dependencies.jar <path to file>
To run the tests:
$ mvn test
It's also possible to run some samples:
$ java -jar target/tenpinsbowling-1.0.0-SNAPSHOT-jar-with-dependencies.jar src/main/resources/samples/zero_score # this a sample of a game with zero score
$ java -jar target/tenpinsbowling-1.0.0-SNAPSHOT-jar-with-dependencies.jar src/main/resources/samples/perfect_game # this a sample of a game with a perfect score
$ java -jar target/tenpinsbowling-1.0.0-SNAPSHOT-jar-with-dependencies.jar src/main/resources/samples/two_players # this a sample of a game with two players