clear method

void clear()

Fills the entire grid with empty cells.

Implementation

void clear() {
  for (int y = 0; y < terminal.height; y++) {
    for (int x = 0; x < terminal.width; x++) {
      _grid[y][x] = Cell.empty;
    }
  }
}