- Edited
Hello, so Im in the process of making a tile based game (quite similar to games like CDDA and Caves Of Qud). Currently im faced with a problem of storing positions of seen tiles; if a certain tile was ever in your field of view its excluded from fog of war. So basically my idea was to add position of a given seen tile to a dictionary: Dictionary_Name[Tile_Pos]=true, and checking if player ever discovered given tile (via for an example if Dictionary_Name[Tile_Pos]==true). But solution like this would require immense amounts of processing power after a while to check if a given position is a key in a dictionary constructef of hundreds if not thousands of keys.
Im pretty sure solution to this problem was solved somehow but i struggle to find any documentation on this topic. Perhaps making a hash table would help?