Coder Social home page Coder Social logo

scott------ / super-super-hoover-sim Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 48 KB

Super Super Hover Sim is a program that navigates an imaginary robotic hoover (much like a Roomba) through an equally imaginary room.

License: GNU General Public License v3.0

HTML 100.00%

super-super-hoover-sim's Introduction

Super-Super-Hoover-Sim

Super Super Hoover Sim is a program that navigates a imaginary robotic hoover (much like a Roomba) through an equally imaginary room.

To run the simulation download input.txt and supersuperhooversim.html file to your computer.
Place them both in the same directory (for simplicity). Open the supersuperhooversim.html in any modern browser. Click on the 'Choose File' button and select the aforementioned input.txt file. The resultant program output is sent to the console.log but will be displayed in the browser for your convenience.

The input file format is: First line defines the grid size with two ints separated by a space. Example grid size: 493 35 The second line is the Hoover's starting position given in the same format. Example hoover starting position: 30 99 Subsequent lines contain the zero or more positions of patches of dirt, given in the same format. The last line contains the driving instructions that the hoover will follow.
The driving instructions move the hoover one space per instruction element. These example driving instructions would attempt to move the rover up twice and right once: NNE If the rover were already at the right most wall of the grid it will spin its wheels and not be able to move further east. The hoover loves to clean dirt patches.

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.