Skip to content

A variation of the game "Snakes and Ladders" in Python

License

Notifications You must be signed in to change notification settings

Quentin18/Ladders-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ladders Game

The Ladders Game is a variation of the game Snakes and Ladders with Python and pygame. A very funny game for 2 to 10 players with sounds effects!

Rules

The object of the game is to be the first player to reach the end by moving across the board from square one to the final square.

  • The players will move their pieces from left to right, starting at 1, following the numbers on the board, then the next row from right to left and repeat.
  • Roll the dice. Move your piece the number of spaces shown on the dice.
  • If your piece arrives at the bottom of a ladder, you move up to the top of the ladder.
  • If your piece arrives at the top of a ladder, you move up to the bottom of the ladder.
  • To win, you need to roll the exact number to reach the final square. If the die roll is too large, you need to bounce back.

Install

To install, open a command prompt and launch:

git clone https://github.com/Quentin18/Ladders-Game.git

You need to install pygame and matplotlib:

pip3 install pygame
pip3 install matplotlib

Play

This is how to launch the Ladders Game:

  1. Go in the directory:
cd Ladders-Game
  1. Launch the main file:
python3 main.py
  1. You arrive in a tkinter window to create the players. The checkbutton Auto means that you don't have to press SPACE to roll the dice if it is checked.

  1. Click on Valid and the game starts.

Stats

If you press s, you can see the evolution of the game thanks to matplotlib.

Contact

quentindeschamps18@gmail.com

License

MIT

About

A variation of the game "Snakes and Ladders" in Python

Topics

Resources

License

Stars

Watchers

Forks

Languages