MCPcopy Create free account
hub / github.com/geekcomputers/Python / draw_board

Function draw_board

Tic-Tac-Toe Games/tic-tac-toe5.py:30–42  ·  view source on GitHub ↗

Display the current board.

(board: List[str])

Source from the content-addressed store, hash-verified

28
29
30def draw_board(board: List[str]) -> None:
31 """Display the current board."""
32 print(" | |")
33 print(f" {board[7]} | {board[8]} | {board[9]}")
34 print(" | |")
35 print("-------------")
36 print(" | |")
37 print(f" {board[4]} | {board[5]} | {board[6]}")
38 print(" | |")
39 print("-------------")
40 print(" | |")
41 print(f" {board[1]} | {board[2]} | {board[3]}")
42 print(" | |")
43
44
45def input_player_letter() -> Tuple[str, str]:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected