Wumpus, easy game. create a 2D room matrix, initialize with nothing (
empty room )
Drop a wumpus in a randomly picked room. Choose a room, Not the wumpus
room!, for the player
On a move, traverse all the rooms connected to your players room, But
only to a depth of 2 rooms,
you would look at a total of 16 rooms. 4 rooms first pass, If the wumpus
is within 1 room,
"you see a wumpus", if it's 2 levels out, "you smell a wumpus".
Then you
move. I don't remember if
you treat the edges as blocked "you can't go that way", or wrap to the
other side.
If your room is the wumpus room, game over. The diagram below shows the
search pattern.
P is player, 1's are first level search "i see a wumpus", 2's are "
i
smell a wumpus"
N
XX2XX
X212X
W 21P12 E
X212X
XX2XX
S
I smell a wumpus. "W"
N
XXWXX
X212X
W 21P12 E
X212X
XX2XX
S
Have fun.
Jim Davis.
healyzh(a)aracnet.com wrote:
Gee, I had so much fun with that thing. OMSI had
one, I once tried to
build a very simple serial computer with the thing. With 8 JK-FF, it's
really difficult. This was back in 73 at the west lab. I have to agree,
$250 is quite a bit. Loved the wood case and the high quality
construction.
Hello to Jim Willing and Gary Oliver.
Jim Davis.
How could OMSI have sunk this low? I never was aware of any of this when I
was growing up and visiting there in the 70's and 80's. However, you go
there now and they just don't have any cool exhibits like they used to.
What I would really love to find is a Graphical version of "Hunt the Wumpus"
like they had. That was a really simple game, but really cool. I'd
probably write it myself if I could remember enough about how it went.
Zane