GithubHelp home page GithubHelp logo

wumpus's Introduction

Ruby OOP Homework

Instructions for DIY Hunt the Wumpus

This article helps with the context of the homework. Read this (particularly the concept of “rooms”, neighbors, and exits).

  1. Create a branch of your own to do your work on:

    $ git checkout -b diy_wumpus

  2. Download the tests for the Wumpus::Room class:

    $ git pull origin room_tests

  3. Run the tests and verify that there are new failures:

    $ ruby test/suite.rb

  4. Edit lib/wumpus/room.rb to get the tests to pass.

    • Note: Tests are found in test/unit/room_test.rb

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

Bonus

  1. Download the tests for the Wumpus::Cave class:

    $ git pull origin cave_tests

  2. Run the tests and verify that there are new failures:

    $ ruby test/suite.rb

  3. Edit lib/wumpus/cave.rb to get the tests to pass.

  4. Download the tests for the Wumpus::Player class:

    $ git pull origin player_tests

  5. Run the tests and verify that there are new failures:

    $ ruby test/suite.rb

  6. Edit lib/wumpus/player.rb to get the tests to pass.

  7. Download the game executable and supporting UI code:

    $ git pull origin game_executable

  8. Enjoy a game of Hunt The Wumpus (hopefully):

    $ bin/wumpus

Resource: https://github.com/elm-city-craftworks/wumpus

wumpus's People

Contributors

practicingruby avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.