Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update statement to stabilize rule changes
[troll.git]
/
src
/
test
/
java
/
PlayerRand.java
diff --git
a/src/test/java/PlayerRand.java
b/src/test/java/PlayerRand.java
index
4dc9103
..
a29f16d
100644
(file)
--- a/
src/test/java/PlayerRand.java
+++ b/
src/test/java/PlayerRand.java
@@
-11,11
+11,14
@@
public class PlayerRand {
};
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
};
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
- Random random = new Random();
int roadLength = in.nextInt();
int initialStones = in.nextInt();
int roadLength = in.nextInt();
int initialStones = in.nextInt();
+ long gameSeed = in.nextLong();
+ int gameSide = in.nextInt();
in.nextLine();
in.nextLine();
+ long mySecretSalt = 0x4242424242424242L;
+ Random random = new Random(gameSeed ^ gameSide ^ mySecretSalt);
while (true) {
int trollDistance = in.nextInt();
while (true) {
int trollDistance = in.nextInt();