Snakes and ladders is a board game. Roll the dice and try your luck! Ladders will take you up but Snakes will take you down! .
Be aware to download the GCC compiler if you want to compile.
- Just type this command :
gcc -Wall boardgame.c -o boardgame && boardgame.exe <number_snakes> <number_ladders>
- To start the program, you just need to run the following command
make
- Then, type this :
./boardgame <number_snakes> <number_ladders>
- Choose the amount of snakes / ladders
- Press enter to roll a die
- And watch your player moving forwards or backwards on the gameboard :)
A report under the name of
report_game.txt
will be created at the end of the game.
Recording.Gameplay.mp4
- 🔢 1st line : Index of the square
- 2nd line : If square contains a snake / ladder
- 🐍 SH : Snake head
- 🐍 SF : Snake foot
- 🪜 LH : Ladder head
- 🪜 LF : Ladder foot
- 📍 3r line : Location of the player
This project is licensed under the MIT License - see the LICENSE.md file for details.
@jvondermarck |
---|
Link to the GitHubt |