Upgrade to engine 3.15.0
[troll.git] / config / stub.txt
1 read roadLength:int initialStones:int
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 length of the road between both castles. The troll starts in the middle.
11 initialStones: the number of stones each castle starts with
12 trollDistance: distance between the troll and your castle. Keep it above zero!
13 stones: number of stones left
14 opponentStones: number of stones left to your opponent
15
16 OUTPUT
17 number of stones to shoot at the troll