An implementation of the Snakes and Ladders board game.
By Jain Miniature - http://www.herenow4u.net/index.php?id=72923, Public Domain, Link
For testing, please run:
./gradlew test
For building, please run:
./gradlew build
Run with h
option for help.
./gradlew run --args "h"
As you can see from the help screen, there are two ways to run the application, with default names or specify the names.
Example: You can run the following command to generate a game with 50 squares, 5 ladders, 5 snakes and 2 players with default names.
./gradlew run --args "50 5 5 2"
or run the following to specify the names, number of arguments starting from the fourth argument will be count as player names.
./gradlew run --args "50 5 5 'First player' 'Second player'"
will generate a game with the same structure with the first example, but using custom player names.