A simple game of snakes and ladders created on Python 3.7.6
as a school project.
Python 3.7.6
termcolor 1.1.0
-
Install
Python 3.7.6
-
Install and activate the virtual environment
pip install virtualenv
If you haven't already, clone this project from your fork, and enter the main directory.
# on linux/macOS
source env/bin/activate
# on windows
env\bin\activate
Your command prompt should look something like this -
(env) $
- Install all dependencies
pip install -r requirements.txt
In the event you want to add a dependency, make sure to pip install
it only when the virtualenv is active. Once that is done, run the following command to add your dependency to requirements.txt
-
pip freeze > requirements.txt
- Run it
(env) $ python Snakes.py
-
After running the game, the you'll be asked about the number of users ranging from 1 and 4
-
The grid gets loaded with user's beed at the start position
-
Press roll to roll the dice.
-
With each roll the grid gets updated with an updated score the goal.
-
The first person to reach the end will be declared as a winner