- This section's HTML gets messed up somewhere in the SDK - pipeline. I reported it there; and there - you'll be able to find a readable representation of this - block. Sorry about the inconvenience… -
Your first line of input contains five space-separated parameters: - roadLength initialStones - gameSeed gameSide - reserved
-
-
- roadLength +
- roadLength
-
distance between both castles, between
6 and14 .
- - initialStones +
- initialStones
-
number of stones a castle starts the day with,
between
0 and50 .
- - gameSeed +
- 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 +
- 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 + (reproducible) random that doesn't necessarily draw when it plays against itself.
- - reserved +
- reserved
- - reserved for future use, ignore for now + reserved for future use, ignore for now.