Skip to content

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.

License

Notifications You must be signed in to change notification settings

AmruthLP12/side-project-pig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages