From 3dbec5cc2c9940d817c495265ea381611ae96f4b Mon Sep 17 00:00:00 2001 From: "Marty (mklemmingen)" Date: Sun, 10 Dec 2023 16:42:51 +0100 Subject: [PATCH] bugfix 4 black to value 6 --- core/src/com/senetboom/game/backend/Stick.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/com/senetboom/game/backend/Stick.java b/core/src/com/senetboom/game/backend/Stick.java index fbf2655..3a27958 100644 --- a/core/src/com/senetboom/game/backend/Stick.java +++ b/core/src/com/senetboom/game/backend/Stick.java @@ -29,6 +29,9 @@ public Stick() { this.stickRolls[i] = new StickRoll(); this.stickValue += this.stickRolls[i].getStickRoll(); } + if(stickValue == 0){ // 4 blacks equal value 6 + stickValue = 6; + } // create RollingsSticks actor and add to stage RollingSticks rollingSticks = new RollingSticks();