Return a dictionary to represent the color of the "floor". The keys are (x, y) integer tuples and the values are color strings such as 'red' or 'black'.
()
| 81 | |
| 82 | |
| 83 | def getNewFloor(): |
| 84 | """Return a dictionary to represent the color of the "floor". The |
| 85 | keys are (x, y) integer tuples and the values are color strings |
| 86 | such as 'red' or 'black'.""" |
| 87 | floor = {} |
| 88 | for x in range(WIDTH): |
| 89 | for y in range(HEIGHT): |
| 90 | floor[(x, y)] = 'black' |
| 91 | return floor |
| 92 | |
| 93 | |
| 94 | class Painter: |