Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Time rationalization
[troll.git]
/
config
/
Boss.java
diff --git
a/config/Boss.java
b/config/Boss.java
index
d3c297d
..
3d32979
100644
(file)
--- a/
config/Boss.java
+++ b/
config/Boss.java
@@
-1,20
+1,36
@@
import java.util.Random;
import java.util.Scanner;
import java.util.Random;
import java.util.Scanner;
-public class Player2 {
+class Player {
+ 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);
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();
int roadLength = in.nextInt();
int initialStones = in.nextInt();
+ in.nextLong(); // seed
+ in.nextInt(); // side
+ in.nextLine();
while (true) {
int trollDistance = in.nextInt();
int stones = in.nextInt();
int opponentStones = in.nextInt();
while (true) {
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));
+ }
}
}
}
}
}
}