Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amruthlp12/side-project-pig
A simple implementation of the Pig dice game in Python. The game starts by asking the user to enter the number of players (2 to 4). Each player takes turns rolling a dice until they choose to hold. If a player rolls a 1, their turn ends and the next player starts. If a player rolls any other number, they can choose to roll again or hold.
https://github.com/amruthlp12/side-project-pig
dice-game dice-rolling game-development game-logic multiplayer-game pig-dice-game probability-concepts python random
Last synced: about 1 month ago
JSON representation
A simple implementation of the Pig dice game in Python. The game starts by asking the user to enter the number of players (2 to 4). Each player takes turns rolling a dice until they choose to hold. If a player rolls a 1, their turn ends and the next player starts. If a player rolls any other number, they can choose to roll again or hold.
- Host: GitHub
- URL: https://github.com/amruthlp12/side-project-pig
- Owner: AmruthLP12
- License: mit
- Created: 2024-06-05T14:29:46.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T16:23:02.000Z (7 months ago)
- Last Synced: 2024-06-26T06:23:59.666Z (6 months ago)
- Topics: dice-game, dice-rolling, game-development, game-logic, multiplayer-game, pig-dice-game, probability-concepts, python, random
- Language: Python
- Homepage: https://github.com/AmruthGowda91200/side-project-pig
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pig Dice Game
================A simple implementation of the Pig dice game in Python.
### Gameplay
- The game starts by asking the user to enter the number of players (2 to 4).
- Each player takes turns rolling a dice until they choose to hold.
- If a player rolls a 1, their turn ends and the next player starts.
- If a player rolls any other number, they can choose to roll again or hold.
- The game continues until one of the players reaches or exceeds the target score of 50 points.
- The winner is the player with the highest score.### How to Play
1. Clone this repository to your local machine.
2. Open the terminal and navigate to the repository directory.
3. Run the game by executing `python pig_dice_game.py`.
4. Follow the prompts to enter the number of players and play the game.### Contributing
Contributions are welcome. If you'd like to contribute, please fork this repository and create a pull request with your changes.
### License
This project is licensed under the MIT License.
### Repository
https://github.com/AmruthGowda91200/pig-dice-game