From 145e811eeb0b605ea1adc3b2697a2f6a3b603530 Mon Sep 17 00:00:00 2001 From: Jonas Wagner Date: Wed, 16 Feb 2022 09:43:04 +0100 Subject: [PATCH] Hotfix checkDice --- src/main/java/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/Game.java b/src/main/java/Game.java index ac3aa70..dcfb2fa 100644 --- a/src/main/java/Game.java +++ b/src/main/java/Game.java @@ -73,7 +73,7 @@ public class Game { */ public boolean checkDice(int dice, Player p, int countRolls, Game g) { int figuresInBase = p.checkFigureInBase(p.figures); - if(countRolls >= 3) return false; + if(countRolls >= 3) return dice == 6; if(figuresInBase == 4) { return true; } else if (figuresInBase < 4) {