MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / draw_board

Method draw_board

rl/tic_tac_toe.py:234–246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232 # | | | o |
233 # -------------
234 def draw_board(self):
235 for i in range(LENGTH):
236 print("-------------")
237 for j in range(LENGTH):
238 print(" ", end="")
239 if self.board[i,j] == self.x:
240 print("x ", end="")
241 elif self.board[i,j] == self.o:
242 print("o ", end="")
243 else:
244 print(" ", end="")
245 print("")
246 print("-------------")
247
248
249

Callers 1

play_gameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected