Giter Site home page Giter Site logo

ladders-game's Introduction

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

[email protected]

License

MIT

ladders-game's People

Contributors

quentin18 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.