Instructions for DIY Hunt the Wumpus
-
Create a branch of your own to do your work on:
$ git checkout -b diy_wumpus
-
Download the tests for the
Wumpus::Room
class:$ git pull origin room_tests
-
Run the tests and verify that there are new failures:
$ ruby test/suite.rb
-
Edit
lib/wumpus/room.rb
to get the tests to pass. -
Download the tests for the
Wumpus::Cave
class:$ git pull origin cave_tests
-
Run the tests and verify that there are new failures:
$ ruby test/suite.rb
-
Edit
lib/wumpus/cave.rb
to get the tests to pass. -
Download the tests for the
Wumpus::Player
class:$ git pull origin player_tests
-
Run the tests and verify that there are new failures:
$ ruby test/suite.rb
-
Edit
lib/wumpus/player.rb
to get the tests to pass. -
Download the game executable and supporting UI code:
$ git pull origin game_executable
-
Enjoy a game of Hunt The Wumpus (hopefully):
$ bin/wumpus
If you get stuck, or you just want to see how Practicing Ruby implemented this game, you can always check out the reference implementation:
$ git checkout origin/reference_implementation