Add NUM_ROBOTS number of robots to empty spaces on the board and return a list of these (x, y) spaces where robots are now located.
(board)
| 109 | |
| 110 | |
| 111 | def addRobots(board): |
| 112 | """Add NUM_ROBOTS number of robots to empty spaces on the board and |
| 113 | return a list of these (x, y) spaces where robots are now located.""" |
| 114 | robots = [] |
| 115 | for i in range(NUM_ROBOTS): |
| 116 | x, y = getRandomEmptySpace(board, robots) |
| 117 | robots.append((x, y)) |
| 118 | return robots |
| 119 | |
| 120 | |
| 121 | def displayBoard(board, robots, playerPosition): |
no test coverage detected