Return True if a position on the board is free. >>> is_space_free([' ', 'X',' ',' ',' ',' ',' ',' ',' ',' '], 1) False >>> is_space_free([' ']*10, 5) True
(board: List[str], move: int)
| 97 | |
| 98 | |
| 99 | def is_space_free(board: List[str], move: int) -> bool: |
| 100 | """ |
| 101 | Return True if a position on the board is free. |
| 102 | |
| 103 | >>> is_space_free([' ', 'X',' ',' ',' ',' ',' ',' ',' ',' '], 1) |
| 104 | False |
| 105 | >>> is_space_free([' ']*10, 5) |
| 106 | True |
| 107 | """ |
| 108 | return board[move] == " " |
| 109 | |
| 110 | |
| 111 | def get_player_move(board: List[str]) -> int: |
no outgoing calls
no test coverage detected