Initialise the grid with empty cells.
(self, width, height)
| 39 | """Class to store grid.""" |
| 40 | |
| 41 | def __init__(self, width, height) -> None: |
| 42 | """Initialise the grid with empty cells.""" |
| 43 | self._grid = [[Empty() for _ in range(width)] for _ in range(height)] |
| 44 | |
| 45 | def __str__(self) -> str: |
| 46 | """Return the string representation of the grid.""" |