Skip to content

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!

License

Notifications You must be signed in to change notification settings

jvondermarck/snakes-and-ladders

Repository files navigation


🐍 Snakes and Ladders 🪜

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! .

📃 Table of content

🧑‍💻 Installation

Be aware to download the GCC compiler if you want to compile.

🛠 Installation on Windows

  • Just type this command : gcc -Wall boardgame.c -o boardgame && boardgame.exe <number_snakes> <number_ladders>

🛠 Installation on Linux

  • To start the program, you just need to run the following command make
  • Then, type this : ./boardgame <number_snakes> <number_ladders>

🎮 How to Play

  • 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.

🕹️ The gameboard

Screenshot of the gameboard



Gameplay of the gameboard

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

✍️ Licence

This project is licensed under the MIT License - see the LICENSE.md file for details.

👨 Creator


@jvondermarck
Link to the GitHubt

About

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!

Topics

Resources

License

Stars

Watchers

Forks