/pigDice

Primary LanguageHTML

Specs:

  • Press a button and return a random numbers between 1 and 6.
  • Keep a total sum of the user's dice rolls for their current turn
  • Keep a total score for each user for the game.
  • Keep score for 2 seperate users, and switch between which user is rolling.
  • Let the player "hold", which then switches to the other user and adds turn total to game total.
  • If a user rolls a 1, reset their turn score to 0, and switch to the other user's turn.
  • If a user reaches 100, they win