Skip to content

singhArmani/robot-toy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started Guide

Pre-requiste

Run

Open your terminal and run yarn start to open and play with our toy robot.

Tests

Run yarn test to run all the tests.

Instructions

  • Robot can be given a sequence of single command or a txt file containing multiple command in each new line.
  • Following are the valid list of commands our robot can understand:
    • PLACE X,Y,F (where X, Y are the position on the tabletop, and F is the direction)
    • MOVE (will move the Robot by one unit in the current direction)
    • LEFT (will rotate the robot by 90 deg. anti-clockwise)
    • RIGHT (will rotate the robot by 90 deg. clockwise)
    • REPORT (will output the robot location on the table)

About

Robot toy simulator using NodeJS with TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published