A code kata revolving around automata processing Turning machine style instructions in a bounded universe
CoffeeScript Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
awk
src
test
MartianRobots.pdf
README.md
mission-to-mars.coffee
robots.watchr

README.md

Martian Robots

The original problem specification is contained in the file MartianRobots.pdf helpfully provided by RedBadger.

Prerequisites: Node.js and npm (comes packaged with Node these days) with the following modules:

  • coffee-script
  • jasmine-node

You can install these modules by:

sudo npm install -g coffee-script jasmine-node

You can run the excercise's code with:

coffee mission-to-mars

You can run all the tests with:

jasmine-node --coffee test

Adding the '--verbose' qualifier will show the test names and test suite titles as well as whether they passed or failed.

I set up a watchr file - robots.watchr - so that the tests are run automatically every time you save a file in your editor, simply run watchr with:

watchr robots.watchr