Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
scienmanas committed Aug 13, 2023
1 parent 552786a commit 2902d3f
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
# Snake-and-Ladder
I made a snake and ladder game by using basic python as part of mine course project
# Snake and Ladder Game

This is a simple Snake and Ladder game implemented in Python. The game simulates a board with snakes and ladders, where two players take turns rolling a dice and advancing on the board. The goal is to reach the 100th position before your opponent.

## How to Play

1. Run the Python script `Project_snake.py`.
2. Follow the instructions to play the game.
3. Type any alphabet and press Enter to roll the dice.
4. Players take turns to roll the dice and move their respective tokens on the board.
5. The first player to reach or exceed position 100 wins the game.

## Rules

- Snakes are represented by negative numbers, and ladders are represented by positive numbers.
- Players are represented by 'P1' and 'P2' tokens on the board.
- If a player lands on a snake's head, they move down to the tail of the snake.
- If a player lands on the base of a ladder, they climb to the top of the ladder.

## Sample Gameplay



## Contributions

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

0 comments on commit 2902d3f

Please sign in to comment.