dmalec/Hunt-The-Wumpus — pull request #2 by jacgoudsmit (2013-08-30 06:43:48+00:00)
Title: Make program compile on Arduino 1.0.5; Put hazards in unique rooms; Add map

First of all, I added the "const" parameter to the function that failed to compile as noted in an issue on the original repo, and as fixed in the Adafruit fork.

Second:
When the random number generator puts multiple hazards (wumpus, bats, pits) in the same room, the program didn't show them on the display. Apparently some parts of the program assume that no room can have more than one hazard, but the initialization doesn't ensure that the various hazards land in unique rooms.

There are two ways to fix this:
1. Make the entire program aware that there may be more than one hazard in each room, or:
2. Initialize the hazards and guarantee that each hazard ends up in its own room.

I decided that the latter option was the easiest to implement, so that's what I did.

Finally, I added a map in ASCII text (crude but effective). If users don't want any spoilers, they shouldn't open the file :-)

Thanks!