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

Function print_board

tic-tac-toe.py:5–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3board = [" " for _ in range(9)]
4
5def print_board():
6 print()
7 print(f" {board[0]} | {board[1]} | {board[2]} ")
8 print("---|---|---")
9 print(f" {board[3]} | {board[4]} | {board[5]} ")
10 print("---|---|---")
11 print(f" {board[6]} | {board[7]} | {board[8]} ")
12 print()
13
14def check_winner(player):
15 win_conditions = [

Callers 1

tic-tac-toe.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected