Giter Site home page Giter Site logo

toy-robot's Introduction

toy-robot

This is a demo of a Toy Robot simulation on 5 x 5 terrain.
Very is to use and made just for fun.

Installation

  1. git clone
  2. npm install
  3. npm start

That's it!

How to use

Just input your toy robot position axis. Starting axis origin point is the top left (0,0) X: range 0 - 4. Only number values are allow. Any number out of range is been ignored
Y: range 0 - 4. Only number values are allow. Any number out of range is been ignored
F: Facing is the direction the Toy Robot is facing. Valid input values

  • N = North
  • E = East
  • S = South
  • W = West

Any other input will be ignored.

Application flow

Start by inputting your Toy Robot's initial X, Y position and where it is Facing.
Press Place button to place your Toy Robot on the terrain. You can move your robot by one tile each time at the direction that your robot is facing.
You can also rotate your robot left and right. Finally you can press the Report button in order to be informed regarding the position and the direction your robot is facing.

Any position out of the terrain will be ignore, as any invalid move. Your toy Robot will respond to your commands by it is clever enough not to fall off the terrain.

Enjoy!!!!

ScreenShoot

toy-robot's People

Contributors

a-than avatar

Watchers

 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.