Skip to content

erik-trantt/bellroy-robot-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

Open the HTML file from a browser.

Requirement breakdown:

  • Create a Javascript application in which you can simulate controlling a robot
  • The robot should be placed on a 5x5 grid
  • Supply controls that let you:
    • Move the robot forwards in the direction it is facing, and
    • Rotate the robot in place to face any cardinal direction

Assumptions

  1. The board is a 5x5 grid.
  2. Controls for the robot can be of either interfaces:
  • HTML elements (buttons) on the interface
  • Keyboards
  1. The robot starting position is the top left corner and faces to right side of the board.
  2. The robot can only rotate clockwise.