Skip to content

Commit 20452ae

Browse files
committed
style(docs): adjust help spacing and clarify 10x10 board representation
1 parent 0e72809 commit 20452ae

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

othello/templates/games/help.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ <h3>
1010
<h5 style="text-decoration: underline">
1111
Minimal example
1212
</h5>
13-
<pre>
14-
<code>
13+
<pre><code>
1514
def choose_move(board, player, still_running, time_limit):
1615
# Implement this method
1716
return 0
@@ -25,8 +24,9 @@ <h5 style="text-decoration: underline">
2524

2625
def best_strategy(self, board, player, best_move, still_running, time_limit):
2726
move = choose_move(board, player, still_running, time_limit)
28-
best_move.value = move</code>
29-
</pre>
27+
best_move.value = move
28+
29+
</code></pre>
3030
<h5 style="text-decoration: underline">
3131
Method specification
3232
</h5>
@@ -95,11 +95,12 @@ <h5 style="text-decoration: underline">
9595
</h5>
9696
<p>
9797
If you would like to be provided with a 10x10 board instead of the default 8x8 board, you can add a <code>uses_10x10_board</code> variable to your strategy class.
98-
This variable works the same way as the <code>logging</code> variable, in that it must be an attribute of the <code>Strategy</code> class and will default to <code>False</code> if omitted.
98+
This will surround the 8x8 board with an additional layer of <code>'?'</code> characters, as shown below.
99+
Similar to the <code>logging</code> variable, <code>uses_10x10_board</code> must be an attribute of the <code>Strategy</code> class and will default to <code>False</code> if omitted.
99100
</p>
100101
<p>
101-
You can also use a similar <code>uses_10x10_moves</code> variable to signify that your submitted <code>best_move.value</code> refers to indices in this 10x10 board.
102-
If not used, the server will assume that your <code>best_move.value</code> refers to indices in the default 8x8 board.
102+
You can also use the <code>uses_10x10_moves</code> variable to signify that your submitted <code>best_move.value</code> refers to indices in this 10x10 board representation.
103+
If not used, the server will assume that your <code>best_move.value</code> refers to indices in the default 8x8 board, irrespective of whether or not <code>uses_10x10_board</code> is enabled.
103104
</p>
104105
<pre>
105106
<code>

0 commit comments

Comments
 (0)