Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 982 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 982 Bytes

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