GithubHelp home page GithubHelp logo

rea-robot's Introduction

#Turtle Robot

###Description A simulation of a toy robot moving around on a 5x5 square tabletop. ###Environments Code was developed on Ubuntu 14.04 x86_64 but should work on any machine with Ruby 2.0+ ###System Dependencies and Config:

  • ruby => 2.0
  • rspec => 3.3.2 (for testing)

###Installation Assuming you have the relevant dependencies installed, there is no additional installation needed. ###Operation Run the interactive prompt via command line ruby bot_prompt.rb. The bot must be first placed before other actions are enabled. The list of commands are :

  • Place(x,y,f) Place the robot at coordinates x,y and facing f. The bot must be placed within the table—x=[0..4], y=[0..4]. The valid facings are north,west, south and east.
  • Move Move the robot one unit in the direction it faces
  • Right Turn the robot right
  • Left Turn the robot left
  • Report Report robot location and heading

###Testing Rspec is used to test the robot class. You can run the test by typing in the command line rspec bot_spec.rb ###License Creative Commons Attribution 4.0.

rea-robot's People

Contributors

yifeiwu avatar

Watchers

James Cloos avatar  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.