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

Function print_tic_tac_toe

Tic-Tac-Toe Games/tic-tac-toe6.py:22–34  ·  view source on GitHub ↗

Print the current Tic-Tac-Toe board.

(values: List[str])

Source from the content-addressed store, hash-verified

20
21
22def print_tic_tac_toe(values: List[str]) -> None:
23 """Print the current Tic-Tac-Toe board."""
24 print("\n")
25 print("\t | |")
26 print("\t {} | {} | {}".format(values[0], values[1], values[2]))
27 print("\t_____|_____|_____")
28 print("\t | |")
29 print("\t {} | {} | {}".format(values[3], values[4], values[5]))
30 print("\t_____|_____|_____")
31 print("\t | |")
32 print("\t {} | {} | {}".format(values[6], values[7], values[8]))
33 print("\t | |")
34 print("\n")
35
36
37def print_scoreboard(score_board: Dict[str, int]) -> None:

Callers 1

single_gameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected