Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.34 KB

README.md

File metadata and controls

68 lines (48 loc) · 2.34 KB


🐍 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