swapnilsparsh / 30DaysOfJavaScript

Projects made during the 30 days of the JavaScript challenge
https://30daysofjs.netlify.app
MIT License
899 stars 646 forks source link

Title: Adding Pig Dice Game #1904

Closed TBorundia closed 3 weeks ago

TBorundia commented 1 month ago

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.

  1. 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.
  2. 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

github-actions[bot] commented 1 month ago

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

TBorundia commented 1 month ago

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