X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/e0da785e68b21f4906f4f0bc849bb7bbab1abeb8..fddaf463662bf94d6382bf4e9b4d56a9689315af:/src/test/java/PlayerRand.java diff --git a/src/test/java/PlayerRand.java b/src/test/java/PlayerRand.java index a58d673..a29f16d 100644 --- a/src/test/java/PlayerRand.java +++ b/src/test/java/PlayerRand.java @@ -11,10 +11,14 @@ public class PlayerRand { }; public static void main(String[] args) { Scanner in = new Scanner(System.in); - Random random = new Random(); int roadLength = in.nextInt(); int initialStones = in.nextInt(); + long gameSeed = in.nextLong(); + int gameSide = in.nextInt(); + in.nextLine(); + long mySecretSalt = 0x4242424242424242L; + Random random = new Random(gameSeed ^ gameSide ^ mySecretSalt); while (true) { int trollDistance = in.nextInt();