Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title: Adding Pig Dice Game #1904

Closed
TBorundia opened this issue Jul 14, 2024 · 2 comments
Closed

Title: Adding Pig Dice Game #1904

TBorundia opened this issue Jul 14, 2024 · 2 comments

Comments

@TBorundia
Copy link

Is your feature request related to a problem? Please describe.

The game is a digital version of the popular dice game called "Pig." The goal of the game is to be the first player to reach 100 points. Players take turns rolling a single six-sided die as many times as they wish, adding the value of each roll to their current score for that turn. However, if a player rolls a 1, their turn ends, and their current score for that turn is lost. They can also choose to "hold," which means they add their current score for that turn to their total score, and then it becomes the other player's turn. The first player to reach or exceed 100 points wins the game.

Describe the solution you'd like.

How to Play
1.New Game: Click the "🔄 New game" button to start a new game.
2.Roll Dice: Click the "🎲 Roll dice" button to roll the die.
If you roll a 2-6, the number rolled is added to your current score for that turn.
If you roll a 1, your turn ends and your current score for that turn is reset to 0. It then becomes the other player's turn.
3. Hold: Click the "📥 Hold" button to add your current score for that turn to your total score and pass the turn to the other player.
4. Winning: The first player to reach or exceed 100 points wins the game.

Describe alternatives you've considered.

None

Add any other context or screenshots about the feature request here.

image

Copy link

Thank you for opening your first issue in our repository! One of our maintainers will get in touch with you soon.

@TBorundia
Copy link
Author

@swapnilsparsh Sir, Please assign this to me under GSSoC'24.
Thank You!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant