diff --git a/Project/DiceCup.java b/Project/DiceCup.java index 2689067..b256224 100644 --- a/Project/DiceCup.java +++ b/Project/DiceCup.java @@ -11,6 +11,7 @@ public class DiceCup{ MyDie die; + for (int i = 0; i <3; i++){ if (Dx == 8){ die = new EightDie(); } @@ -18,7 +19,6 @@ public class DiceCup{ die = new SixDie(); } - for (int i = 0; i <3; i++){ dice.add(die); } } @@ -49,16 +49,7 @@ public class DiceCup{ } public void updateCredits(){ - if (enoughCredits()){ creditBalance -=1; - checkTriplets(); - checkDouble(); - checkLarge(); - - } - else{ - System.out.println("You do not have enough credits! \n"); - } } public boolean enoughCredits(){ @@ -73,6 +64,7 @@ public class DiceCup{ public void testRoll(int [] values){ //roll dice until desired 3 int array happens if (enoughCredits()){ + updateCredits(); for (int i =0; i