-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
552786a
commit 2902d3f
Showing
1 changed file
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |