Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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