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

Function is_board_full

Tic-Tac-Toe Games/tic-tac-toe3.py:35–37  ·  view source on GitHub ↗

Return True if all cells are filled.

(board: Board)

Source from the content-addressed store, hash-verified

33
34
35def is_board_full(board: Board) -> bool:
36 """Return True if all cells are filled."""
37 return all(all(cell != " " for cell in row) for row in board)
38
39
40def minimax(board: Board, depth: int, is_max: bool) -> int:

Callers 3

minimaxFunction · 0.70
make_moveFunction · 0.70
ai_moveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected