X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/e0290aa2bf6fe6c998d30101fcad648baa2cfcd5..ee0b3a350bf74952ace849ec105866675c91db5c:/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;