Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. if (
  2. sumOfDiceThrows > numberOfDices * averageDiceThrow && //This condition checks if you were lucky with throws so far
  3. hasThereBeenASix && // this is a boolean storing if you threw a six, it checks if you could threw again because you have thrown a 6
  4. resultOfYourFirstThrow > resultOfSecondPlayersFirstThrow ) // this checks if you started the game.
  5. {
  6. //you can write whatever you want here
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement