robert2d/robot

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# TOY ROBOT TEST
[![Build Status](https://travis-ci.org/robert2d/robot.svg?branch=master)](https://travis-ci.org/robert2d/robot)
[![Test Coverage](https://codeclimate.com/github/robert2d/robot/badges/coverage.svg)](https://codeclimate.com/github/robert2d/robot/coverage)
[![Code Climate](https://codeclimate.com/github/robert2d/robot/badges/gpa.svg)](https://codeclimate.com/github/robert2d/robot)

See instructions.txt for the specification. If run on OSX you can turn your speakers on to get more feedback from the robot. There is also a visual component to the REPORT command, which even though it wasn't required I left in anyway.

## INSTALLING

### As a Gem
    gem install robert2d-robot
    robot
    robot < test_data.txt

### Manually
    git clone git://github.com/robert2d/rea-robot.git
    cd rea-robot
    gem install bundler
    bundle install

## USE

### Interactive:

    $ bundle exec ./bin/robot
    PLACE 1,2,EAST
    MOVE
    MOVE
    LEFT
    MOVE
    REPORT

### Passing a file:

    $ bundle exec ./bin/robot < test_data.txt

## Test, Coverage, and rubocop

    $ bundle exec rake