Skip to content

A console app built with TypeScript, simulating a toy robot.

Notifications You must be signed in to change notification settings

TakumaKira/robot-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot Challenge

The console application which is a simulation of a toy robot moving on a square tabletop, of dimensions 5 units x 5 units.

Available Scripts

In the project directory, you can run:

npm install

Right after cloning, you need to run this command to run the scripts below.

npm start

Runs the console app.

Commands

  • PLACE X,Y,F will put the toy robot on the table in position X,Y and facing NORTH, SOUTH, EAST or WEST.
  • MOVE will move the toy robot one unit forward in the direction it is currently facing.
  • LFET and RIGHT will rotate the robot 90 degrees in the specified direction without changing the position of the robot.
  • REPORT will announce the X,Y and orientation of the robot.

npm test

Launches the test runner in the watch mode.

npm run testData

Runs all the test data saved in src/testData directory.

About

A console app built with TypeScript, simulating a toy robot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published