We could use a quadtree for this, but it isn't going to make the lookup/storage much more efficient. Minesweeper maps are really small anyways, so we'll be writing more code for nothing. Could be done later this way, but for now, a simple grid is enough.
The grid is composed of tiles. A tile can be "opened" to reveal a bomb or an enemy, if present. Tiles are destructible, and that's the whole point of the game. Empty space is considered a tile too. Large empty spaces on the map may be filled with enemies, so be careful when you reveal them!
We could use a quadtree for this, but it isn't going to make the lookup/storage much more efficient. Minesweeper maps are really small anyways, so we'll be writing more code for nothing. Could be done later this way, but for now, a simple grid is enough.
The grid is composed of tiles. A tile can be "opened" to reveal a bomb or an enemy, if present. Tiles are destructible, and that's the whole point of the game. Empty space is considered a tile too. Large empty spaces on the map may be filled with enemies, so be careful when you reveal them!