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:
Since we have no clues, we know that any of these nodes will be safe to visit. Let’s try (walk 20)
:
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:
Oh no! One of these streets has a police roadblock. ...
Get Land of Lisp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.