Skip to content

Conversation

@Jess2896
Copy link
Owner

@Jess2896 Jess2896 commented Oct 9, 2019

Game Rules

  • The game has 2 players, playing in rounds
  • In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND score
  • BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn
  • The player can choose to 'Hold', which means that his ROUND score gets added to his GLBAL score. After that, it's the next player's turn
  • The first player to reach 100 points on GLOBAL score wins the game

Challenges

  • If a player rolls a 6 twice in a row, their turn ends and they lose their score
  • Added a new field so the players can insert a new max score
  • Added a second dice, the player's turn ends if either of them rolls a 1

Verification steps

  • Download all the files into a folder and then open the index.html file on a browser.

  • If the lower die rolls a 6 twice in a row, the current player should lose their total score and their turn should end.

  • Test that the winning score can be changed by inserting a number into the input field.

  • Test that both dice work in the same way and that their total sum is added to the score.

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

Successfully merging this pull request may close these issues.

2 participants