Skip to content

lfpratik/snakes_ladders_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Snake and Ladder Game.

Games Rules:

1.  Initially the players are at starting position i.e. 1.
    Take it in turns to roll the dice.
    Move forward the number of spaces shown on the dice.
2.  If you lands at the bottom of a ladder,
    you can move up to the top of the ladder.
3.  If you lands on the head of a snake,
    you must slide down to the bottom of the snake.
4.  Hit enter to roll the dice.
5.  Demo mode will run for single player automatically for 10 turns

How to run game

Game having a two modes demo and pro used the following
commands to run respectively

commands:
    1. python game.py
    2. python game.py -m=pro

How to run test cases

commands:
    1. python -m unittest
    2. python -m unittest -v

How to run individual test case

commands:
    1. python -m unittest tests/test_dice.py
    2. python -m unittest -v tests/test_dice.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages