Commit 2536468
Changed files (1)
src
src/Q4/RandomSumGame.java
@@ -25,11 +25,8 @@ public class RandomSumGame {
public void play(int d1, int d2) {
int total = d1 + d2;
this.puts("You rolled: %d", total);
- if (!hasValuePoint()) {
- this.firstPlay(total);
- } else {
- this.subsequentPlay(total);
- }
+ if (hasValuePoint()) this.subsequentPlay(total);
+ else this.firstPlay(total);
}
public void rollDice() {