Returns a new board with . marking the possible moves.
(board, tile)
| 141 | |
| 142 | |
| 143 | def getBoardWithValidMoves(board, tile): |
| 144 | """Returns a new board with . marking the possible moves.""" |
| 145 | duplicateBoard = copy.copy(board) |
| 146 | |
| 147 | for x, y in getValidMoves(duplicateBoard, tile): |
| 148 | duplicateBoard[(x, y)] = '.' |
| 149 | return duplicateBoard |
| 150 | |
| 151 | |
| 152 | def displayBoard(board): |