The game isn't finished, but I'm not taking any more suggestions at this time, the path is now determined. There will be three leagues:
For the WIP phase of this draft, I'll likely merge the last two leagues into one because we need data on what makes the games interesting.
You're still welcome to discuss the game on the forum or report a bug on the contribution's page.
This place used to read: “Just read the sample code. You can figure this out.” Here are the formalities for that other part of the audience.
Your first line of input contains five space-separated parameters:
gameSeed
to have a
(reproducible) random that doesn't necessarily draw
when it plays against itself.
At each turn, you are provided with the following three space-separated values:
After having received your turn input, you are to output a single integer stones: the number of stones you wish to throw at the troll.
You may optionally provide a message you wish your castle to yell at the troll or at your opponent. Just append it to your output, being sure to separate it with at least one space.
You're allowed the default SDK timings. I think it's one second for the first turn and 50 ms then, but don't quote me on this.
Language Family | Inspiration |
---|---|
JVM |
long mySecretSalt = 0x4242424242424242L; |
C, C++, Perl… |
srand(gameSeed ^ gameSide ^ 0xdeadb33f); |
Other | Unachievable until proven otherwise |
In the lower leagues, the following maps are available and randomly yet extremely fairly (you wouldn't believe the effort that went into this) chosen uniformly at random among the following:
Road length | Stones |
---|---|
You may also override them via game settings roadLength and initialStones, so long as you remember you won't be choosing them for ranking play.
I'm not maintaining the full changelog here anymore as the game's source repository is now publicly available. I'll just make note of the single latest change, so you can know how far behind you were lagging. Patches welcome, BTW.
This draft's last change is: not taking any more suggestions.
Based on an involuntary suggestion by Zaap38 on the #Fr channel. The original appears to be by Romain André-Lovichi .