X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/33d43e0a726d9cb3256489d0b39feebbbb3304a4..2a9c53c2715aae687335b7c842e4142973f28ad7:/src/test/java/Player2.java diff --git a/src/test/java/Player2.java b/src/test/java/Player2.java index d3c297d..5dbb9b8 100644 --- a/src/test/java/Player2.java +++ b/src/test/java/Player2.java @@ -2,9 +2,16 @@ import java.util.Random; import java.util.Scanner; public class Player2 { + private final static String[] messages = { + "meta⁵ @YannT ∷ (a → b) → f1 (f2 (f3 a)) → f1 (f2 (f3 b))", + "By the power of Grayskull!", + "tortue", + "how is ur csb", + "YHBT" + }; public static void main(String[] args) { Scanner in = new Scanner(System.in); - Random random = new Random(0); + Random random = new Random(); int roadLength = in.nextInt(); int initialStones = in.nextInt(); @@ -13,8 +20,14 @@ public class Player2 { int trollDistance = in.nextInt(); int stones = in.nextInt(); int opponentStones = in.nextInt(); - - System.out.println(random.nextInt(stones+1)); + + if (random.nextInt(30) == 0) { + System.out.println(random.nextInt(stones+1) + " " + + messages[random.nextInt(messages.length)]); + } + else { + System.out.println(random.nextInt(stones+1)); + } } } }