ddd551d74aeb7c560d0af35f87f0507d3e86db04
[troll.git] / config / statement_en.html
1 <div class="statement-body">
2    <!-- GOAL --> 
3    <div class="statement-section statement-goal"> 
4      <h2> 
5        <span class="icon icon-goal">&nbsp;</span> 
6        <span>The Goal</span> 
7      </h2> 
8      <div class="statement-goal-content"> 
9        Don't get destroyed by the troll.
10      </div>
11    </div> 
12    <!-- RULES --> 
13    <div class="statement-section statement-rules"> 
14      <h2> 
15        <span class="icon icon-rules">&nbsp;</span> 
16        <span>Rules</span> 
17      </h2> 
18      <div class="statement-rules-content">
19        If you have stones, shoot <const>1</const> or more of them.
20        <br>
21        If you don't have stones, shoot <const>0</const> exactly.
22      </div>
23    </div>
24    <div class="statement-section statement-warning">
25      <h2>
26        <span class="icon icon-warning">&nbsp;</span>
27        <span>Rule Evolution</span>
28      </h2>
29      <div class="statement-warning-content">
30        The following ideas are still in flux, waiting for some
31        opinions.  Please drop a word on the
32        <a href="https://www.codingame.com/contribute/view/507070b7925f661e2d2835c14f950b9d157e">
33          contribution's page
34        </a>
35        or
36        <a href="https://forum.codingame.com/t/troll-vs-castles-brainstorm/184827?u=jbm">
37          on the forum
38        </a>
39        <ul>
40          <li><s>
41            Is it even worth publishing? can the problem be totally solved?
42          </s></li>
43          <li>
44            More maps? (a map is a {road length} × {initial stone count} pair)
45          </li>
46          <li>
47            Leagues? I could conceive the referee being permissive
48            (allow 0 stones thrown) in the first one, and then strict.
49            Off the top of my head:
50            <ol>
51              <li>single small map, cheating is tolerated, boss plays 1</li>
52              <li>the four maps, no cheating, boss plays tit for tat</li>
53              <li>full map continuum</li>
54            </ol>
55          </li>
56          <li>
57            Fog of war? (see only troll position, not enemy
58            throw/stones left) Probably not in this game, be it simple,
59            variable (seeing enemy stones is a boolean decided randomly
60            as part of the map) or by distance.
61          </li>
62          <li>
63            Praise for my artistic skillz
64          </li>
65          <li>
66            Other remarks?
67          </li>
68        </ul>
69      </div>
70    </div>
71    <div class="statement-victory-conditions">
72      <div class="icon victory"></div>
73      <div class="blk">
74        <div class="title">Victory Condition</div>
75        <div class="text">Your opponent loses.</div>
76      </div>
77    </div>
78    <div class="statement-lose-conditions">
79      <div class="icon lose"></div>
80      <div class="blk">
81        <div class="title">Defeat Condition</div>
82        <ul>
83          <li>The troll reaches your castle.</li>
84          <li>When no player has stones left, the troll is closer to your castle.</li>
85        </ul>
86      </div>
87    </div>
88    <div class="statement-section statement-protocol">
89      <h2>
90        <span class="icon icon-protocol">&nbsp;</span>
91        <span>I/O Protocol</span>
92      </h2>
93      <div class="statement-protocol-content">
94        Just read the sample code.  You can figure this out.
95        <br>
96        You're currently allowed the default SDK timings.  I think it's
97        one second for the first turn and 50&nbsp;ms then, but don't
98        quote me on this.
99      </div>
100    </div>
101    <div class="statement-section statement-expertrules">
102      <h2>
103        <span class="icon icon-expertrules">&nbsp;</span>
104        <span>Expert rules</span>
105      </h2>
106      <div class="statement-expert-rules-content">
107        <p>
108          The following maps are currently available and randomly yet
109          extremely fairly (you wouldn't believe the effort that went
110          into this) chosen uniformly at random among the following:
111        </p>
112        <table>
113          <tr><th>Road length</th><td>│</td><th>Stones</th></tr>
114          <tr><td>──────────</td><td>┼</td><td>──────</td></tr>
115          <tr><td><const>6</const></td><td>│</td><td><const>15</const></td></tr>
116          <tr><td><const>6</const></td><td>│</td><td><const>30</const></td></tr>
117          <tr><td><const>14</const></td><td>│</td><td><const>30</const></td></tr>
118          <tr><td><const>14</const></td><td>│</td><td><const>50</const></td></tr>
119        </table>
120        <p>
121          You can also override them via game
122          settings <tt>roadLength</tt> and <tt>initialStones</tt>, so
123          long as you remember forget you won't be choosing them for
124          ranking play.
125        </p>
126      </div>
127    </div>
128    <div class="statement-section statement-protocol">
129      <h2>
130        <span class="icon icon-protocol">&nbsp;</span>
131        <span>Change Log</span>
132      </h2>
133      <p>
134        I'm not maintaining the full changelog here anymore as the
135        <a href="https://troll.desast.re/troll.git">game's source
136        repository</a> is now publicly available.  I'll just make note
137        of the single latest change, so you can know how far behind you
138        were lagging.  Patches welcome, BTW.
139      </p>
140      <p>
141        This draft's last change is:
142        <strong>
143          game parameters can be overridden.
144        </strong>
145      </p>
146    </div>
147    <div class="statement-story-background">
148      <div class="statement-story"
149           style="position: relative; min-height: min-content">
150        <div class="story-text">
151          <div style="text-align: center">
152            &ldquo;Trolls simply detest the very sight of dwarves (uncooked).&rdquo;
153          </div>
154          <div style="text-align: right">
155            &mdash;&nbsp;J.R.R. Tolkien, <i>The Hobbit</i>
156          </div>
157        </div>
158        <div class="story-text" style="margin-top: 4em">
159          <p>
160            Based on an involuntary suggestion by
161            <span class="card" cg-codingamer-card-popup=""
162                  userid="user.codingamer.userId">
163              <a class="pseudo"
164                 href="/profile/dbfa96e0ac9b77a3db679628f27224ae8509333"
165                 title="Zaap38">Zaap38</a>
166            </span>
167            on the #Fr channel.  The original appears to be by
168            <a href="http://andre.lovichi.free.fr/teaching/ea/2015-2016/cours/troll/Trolls_et_chateaux.pdf">
169              Romain Andr&eacute;-Lovichi
170            </a>.
171          </p>
172        </div>
173      </div>
174    </div>
175 </div>