Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. numTurnsLeft = 3;
  2. while(numTurnsLeft > 0) {
  3. for(int i = 0; i < 5-occurencesOfYahtzeeValue; i++) {
  4. dieValue = //random;
  5. if(dieValue == yahtzeeValue) {
  6. occurencesOfYahtzeeValue--;
  7. }
  8. numTurnsLeft--;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement