Hey,
I'm going to have a go at coding the 1970's game Hunt The Wumpus today which is an exercise from the book I am using. Just a quick question before I get started. The game relies on interconnecting rooms that can be navigated using the number keys.
If I want say 20 rooms, I was thinking of having a 6x6 vector for 36 elements, randomly assigning numbers 1-20 to them and setting the others to 0 indicating that you cannot select them (enter that room as it doesn't exist). Obviously I will have to ensure 1-20 are connected. Would this be the correct way to set up the gameboard?
Thanks,
Darren.