AyeshaNaime003 / Snakes-and-Ladders

Snakes and Ladders build using Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Title: Snakes and Ladders by Core Four

Group Members:

  • Muhammad Ali Usman
  • Ayesha Shamim Naime
  • Sameen Mubashar
  • Fatima Hussain

Short project description:

The game we developed is the traditional snakes and ladders game. The main idea of the game is simple that is to win the game by reaching the last box despite of the snakes and ladders in the game board.

Features:

  • Main menu screen with leader board, instructions and button to start or quit the game.
  • Selection of the players.
  • Selection of difficulty level.
  • Login page to get the name of the players.
  • The game boards according to the level selected by the players.

Technical Architecture:

Our game primarily consists of six components:

• Main screen • Instructions • Leader Board • Login page • Boards • Chaos Bag

Further we are using following third party libraries for our game:

• Random • Pygame

Through the apt integration of these components and libraries, we have achieved the desired results. On backend a grid of 1200 x 675 cm is created for the game. The game starts with a menu screen showing to play the game, show leader board or instructions or quit the game. With the selection of instruction button, the rules of the game becomes visible, after reading them the players can get get back to the main menu. By the selection of Leader board, a board will appear showing the results with the player with the most wins at top and so on.After startingn the game, the player will get to see the selection menu for the easy and difficult level, proceeding through it, the player will select the number of players and then finally the Login page will require their names and then store them in the file. These names will be visible on the board. After that the game will start and with the numbers in the chaos bag the beads move against each other encountering the ladders and snakes and the one who will reach the finish point first will be the winner and all the others will be losers. The one who wins will see himself on the leaderboard according to his total wins.

How to run and deploy your code:

To begin with, download Python from the official website of Python: https://www.python.org/downloads/ Then, open command prompt (or terminal in Mac or Linux) and enter the command ‘pip install pygame’. This is used to install the external module pygame. Note: Users with both Python2 and Python3 installed on their systems should type “pip3 install pygame” instead. Lastly, ensure all files are in the same folder. When that is done, run the file “main.py” using python and the game will begin. For best experience, we recommend you to run the game directly from the .py using python. Users interested in development of game are welcome to use an IDE for the execution of the game. Enjoy gaming!

About

Snakes and Ladders build using Python

License:GNU General Public License v3.0


Languages

Language:Python 100.0%