From a738c23f5e5a503b22679fc7d81c5b131b28472c Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Thu, 12 Mar 2020 18:07:23 +0100 Subject: [PATCH] Do not remove item used to escape --- src/edu/kit/informatik/cardgame/model/CardGame.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/edu/kit/informatik/cardgame/model/CardGame.java b/src/edu/kit/informatik/cardgame/model/CardGame.java index 733eec6..2dd6423 100644 --- a/src/edu/kit/informatik/cardgame/model/CardGame.java +++ b/src/edu/kit/informatik/cardgame/model/CardGame.java @@ -90,8 +90,7 @@ public class CardGame { return "lose"; } } else { // attempting to escape - // remove item used to escape - items.remove(items.size() - 1); + // do not remove item used to escape if (roll >= minimumNeeded) { endGame(); phase = Phase.WON;