X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/2032e4c0fbf3f7a170640aecdf41698f85dd9753..e9fb4b60ebdea1a383b0963aa71d0a3ffc1e3822:/src/main/java/com/codingame/game/Model.java?ds=sidebyside diff --git a/src/main/java/com/codingame/game/Model.java b/src/main/java/com/codingame/game/Model.java index 108b5a6..217388a 100644 --- a/src/main/java/com/codingame/game/Model.java +++ b/src/main/java/com/codingame/game/Model.java @@ -26,6 +26,11 @@ class Model { hit = false; } + void loseRound() { + hit = true; + winner = 1 - index; + } + private int castlePosition; public int getCastlePosition() { return castlePosition; } public void setCastlePosition(int pos) { castlePosition = pos; }