Rooms Data File
The file stores the room configurations. First, various items are initilized, next, the code to get a random room. What follows is a list of the rooms available. Zeros are open space, eights are solid rock.

Image not available

You can create as many and as variagated rooms as you like, but the size of them is limited to 10x10, unless you want to modify the code . . . but given that rooms can overlap, that should not be necessary.

This code Copyright 2014 by Shawn Irwin. Anyone may use this code for any purpose as long as you give the author credit for his work.