From 20452aef5333c4651a09e3c7922cb20f993fc159 Mon Sep 17 00:00:00 2001 From: Krishnan Shankar Date: Mon, 20 Nov 2023 19:39:45 -0500 Subject: [PATCH] style(docs): adjust help spacing and clarify 10x10 board representation --- othello/templates/games/help.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/othello/templates/games/help.html b/othello/templates/games/help.html index da8d5f52..648ee3e9 100644 --- a/othello/templates/games/help.html +++ b/othello/templates/games/help.html @@ -10,8 +10,7 @@

Minimal example
-
-        
+    

 def choose_move(board, player, still_running, time_limit):
     # Implement this method
     return 0
@@ -25,8 +24,9 @@ 
def best_strategy(self, board, player, best_move, still_running, time_limit): move = choose_move(board, player, still_running, time_limit) - best_move.value = move -
+ best_move.value = move + +
Method specification
@@ -95,11 +95,12 @@

If you would like to be provided with a 10x10 board instead of the default 8x8 board, you can add a uses_10x10_board variable to your strategy class. - This variable works the same way as the logging variable, in that it must be an attribute of the Strategy class and will default to False if omitted. + This will surround the 8x8 board with an additional layer of '?' characters, as shown below. + Similar to the logging variable, uses_10x10_board must be an attribute of the Strategy class and will default to False if omitted.

- You can also use a similar uses_10x10_moves variable to signify that your submitted best_move.value refers to indices in this 10x10 board. - If not used, the server will assume that your best_move.value refers to indices in the default 8x8 board. + You can also use the uses_10x10_moves variable to signify that your submitted best_move.value refers to indices in this 10x10 board representation. + If not used, the server will assume that your best_move.value refers to indices in the default 8x8 board, irrespective of whether or not uses_10x10_board is enabled.