MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / printBoard

Function printBoard

Tic_Tac_Toe/tic_tac_toe.py:17–22  ·  view source on GitHub ↗
(board)

Source from the content-addressed store, hash-verified

15 return board[pos] == ' '
16
17def printBoard(board):
18 print(' ' + board[1] + ' | ' + board[2] + ' | ' + board[3])
19 print('-----------')
20 print(' ' + board[4] + ' | ' + board[5] + ' | ' + board[6])
21 print('-----------')
22 print(' ' + board[7] + ' | ' + board[8] + ' | ' + board[9])
23
24def isBoardFull(board):
25 if board.count(' ') >= 2:

Callers 1

GamePlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected