Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numTurnsLeft = 3;
- while(numTurnsLeft > 0) {
- for(int i = 0; i < 5-occurencesOfYahtzeeValue; i++) {
- dieValue = //random;
- if(dieValue == yahtzeeValue) {
- occurencesOfYahtzeeValue--;
- }
- numTurnsLeft--;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement