+ Your first line of input contains five space-separated + parameters: +
+-
+
- 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 necessarily draw + when it plays against itself. +
+ - reserved +
- + reserved for future use, ignore for now. + +