Skip to content

thienlh/snakes-and-ladders

Repository files navigation

Snakes and Ladders

An implementation of the Snakes and Ladders board game.

Snakes and Ladders.jpg
By Jain Miniature - http://www.herenow4u.net/index.php?id=72923, Public Domain, Link

Build and running tests

For testing, please run:

./gradlew test

For building, please run:

./gradlew build

Running the game via command line

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages