MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / isBoardFull

Function isBoardFull

src/gamesbyexample/tictactoe.py:85–90  ·  view source on GitHub ↗

Return True if every space on the board has been taken.

(board)

Source from the content-addressed store, hash-verified

83 (b['1'] == b['5'] == b['9'] == p)) # Diagonal
84
85def isBoardFull(board):
86 """Return True if every space on the board has been taken."""
87 for space in ALL_SPACES:
88 if board[space] == BLANK:
89 return False # If any space is blank, return False.
90 return True # No spaces are blank, so return True.
91
92
93def updateBoard(board, space, mark):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected