()
| 47 | return count |
| 48 | |
| 49 | def draw_board(): |
| 50 | canvas.delete("all") # Clear previous drawings |
| 51 | |
| 52 | cell_size = 50 |
| 53 | for row in range(ROWS): |
| 54 | for col in range(COLS): |
| 55 | x1, y1 = col * cell_size, row * cell_size |
| 56 | x2, y2 = x1 + cell_size, y1 + cell_size |
| 57 | |
| 58 | color = "white" if board[row][col] == EMPTY else ("red" if board[row][col] == PLAYER_1 else "yellow") |
| 59 | canvas.create_oval(x1, y1, x2, y2, fill=color) |
| 60 | |
| 61 | def reset_board(): |
| 62 | global board, current_player |
no outgoing calls
no test coverage detected