Lauren Green 6 gadus atpakaļ
vecāks
revīzija
31ce2bd649
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/main/java/io/zipcoder/casino/Yahtzee.java

+ 1
- 1
src/main/java/io/zipcoder/casino/Yahtzee.java Parādīt failu

@@ -174,7 +174,7 @@ public class Yahtzee extends DiceGame implements Game, Gamble{
174 174
 
175 175
     @Override
176 176
     public void bet(int betAmount) {
177
-        dicePlayer.getPlayer().changeBalance(betAmount);
177
+        dicePlayer.getPlayer().changeBalance(betAmount * -1);
178 178
     }
179 179
 
180 180
     @Override