Implement god mode
[troll.git] / config / stub.txt
1 read roadLength:int initialStones:int gameSeed:long gameSide:int reserved:long
2 gameloop
3 read trollDistance:int stones:int opponentStones:int
4 write 1
5
6 STATEMENT
7 Keep the troll out of your castle!
8
9 INPUT
10 roadLength: the distance (even) between both castles. The troll starts at half that distance.
11 initialStones: the number of stones each castle starts with.
12 gameSeed: a random number to salt and help make your games more reproducible.
13 gameSide: a suggested partial salt to help make your reproducible games more interesting.
14 reserved: first unused parameter. There may be more to come.
15 trollDistance: distance between the troll and your castle. Keep it above zero!
16 stones: number of stones you have left.
17 opponentStones: number of stones your opponent has left.
18
19 OUTPUT
20 number of stones to shoot at the troll.