X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/505d4ac3e3dc4a8f143faed4e6d61f7b9c8e2c33..HEAD:/src/main/java/com/codingame/game/Model.java diff --git a/src/main/java/com/codingame/game/Model.java b/src/main/java/com/codingame/game/Model.java index 96140f5..beff100 100644 --- a/src/main/java/com/codingame/game/Model.java +++ b/src/main/java/com/codingame/game/Model.java @@ -192,6 +192,14 @@ class Model { p1.adjustScore(trollPosition); } + boolean FIX_IT() { + switch (league.fixLevel) { + case SOMETIMES: return random.nextInt(10) > 0; + case NEVER: return false; + default: throw new JavaLimitationError(); + } + } + private Integer winner; boolean haveWinner() { return winner != null;