The program described in the topic performs an action that is already available to the player through legitimate means (writing down the locations of trees on paper or in a separate file and then referring to it, or even memorizing them). However, revealing the map is not possible. You cannot write down or memorize the map for a random game, to put it simply.
It is possible. But only if you are some kind of "Rain Man" :smile26: