Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. This Ain't Your Daddy's Wumpus > Let's Hunt Some Wumpus!

Let's Hunt Some Wumpus!

To play our game, simply enter the traveling commands we created (walk and charge) at the REPL, then switch to your browser and refresh known-city.dot.png to plan your next move.

For example, here’s where we left off in our sample game:

image with no caption

Since we have no clues, we know that any of these nodes will be safe to visit. Let’s try (walk 20):

image with no caption

Uh oh! There’s blood here. That means the Wumpus must be two nodes away! It should still be safe to (walk 11) though, because that’s only one node away:

image with no caption

Oh no! One of these streets has a police roadblock. Let’s backtrack with (walk 20) (walk 19), and then we can try (walk 7):

image with no caption

Darn! Now we have the Wumpus and some Glowworms nearby. Let’s take a shot in the dark and try (walk 10):


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint