Returns True if the `board` has no empty spaces, otherwise returns False.
(board)
| 117 | |
| 118 | |
| 119 | def isFull(board): |
| 120 | """Returns True if the `board` has no empty spaces, otherwise |
| 121 | returns False.""" |
| 122 | for rowIndex in range(BOARD_HEIGHT): |
| 123 | for columnIndex in range(BOARD_WIDTH): |
| 124 | if board[(columnIndex, rowIndex)] == EMPTY_SPACE: |
| 125 | return False # Found an empty space, so return False. |
| 126 | return True # All spaces are full. |
| 127 | |
| 128 | |
| 129 | def isWinner(playerTile, board): |