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

Function draw_board

Tic-Tac-Toe Games/tic-tac-toe2.py:31–38  ·  view source on GitHub ↗

Print the current state of the Tic-Tac-Toe board.

()

Source from the content-addressed store, hash-verified

29
30
31def draw_board() -> None:
32 """Print the current state of the Tic-Tac-Toe board."""
33 print(f" {board[1]} | {board[2]} | {board[3]}")
34 print("___|___|___")
35 print(f" {board[4]} | {board[5]} | {board[6]}")
36 print("___|___|___")
37 print(f" {board[7]} | {board[8]} | {board[9]}")
38 print(" | | ")
39
40
41def check_position(b: List[str], pos: int) -> bool:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected