Skip to content

React implementation of toy robot console application

Notifications You must be signed in to change notification settings

pmonty/toy-robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy-Robot Challenge

React and Redux implementation of toy robot console application.

Tools

Install

git clone https://github.com/pmonty/toy-robot.git
cd toy-robot
yarn install

Run

yarn run develop

Commands

PLACE X,Y,F This command will place the robot at its initial origin (X,Y) facing in the direction provided (NORTH, SOUTH, EAST, WEST)

MOVE This command will move the robot one coordinate forward the way it is facing

LEFT This command will change the direction the robot is facing.

RIGHT This command will change the direction the robot is facing.

REPORT This command will report the current location of the robot.

EXPECTED RESULTS a)---------------- PLACE 0,0,NORTH MOVE REPORT Output: 0,1,NORTH

b)---------------- PLACE 0,0,NORTH LEFT REPORT Output: 0,0,WEST

c)---------------- PLACE 4,4,NORTH MOVE (will add 'No square ahead' to log) TEST (will add 'Invalid command entered.' to log) REPORT Output: 4,4,NORTH

Tests

yarn run test

TODO

  • Grid/Table with robot animation using React-Motion
  • Dockerfile setup Docker
  • baseUrl and moduleResolution tidy up
  • fix command container test
  • UI for form and use Formik
  • Constants and helper functions

About

React implementation of toy robot console application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published