+ Your first line of input contains space-separated + parameters: + roadLength initialStones + gameSeed gameSide + reserved1 … reservedN +
+-
+
- roadLength +
-
+ distance between both castles, between
6 + and14 . +
+ - initialStones +
-
+ number of stones a castle starts the day with,
+ between
0 and50 . +
+ - gameSeed +
- + the game's seed. The game AIs use it to provide you + with reproducible matches even when they use stochastic + algorithms, and you're encouraged to do the same! See + examples section below for simple ways to achieve that. + +
- gameSide +
-
+ which side you're on, as
-1 + or1 . It's not supposed to make a + difference to how you handle the rest of the game, but + you can XOR it to yourgameSeed
to have a + (reproducible) random that doesn't mecessarily draw + when it plays against itself. +
+ - reservedN +
- + one or more parameters, reserved for future use + +