Skip to content

c20020207/toy-robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToyRobot

  • The application is a simulation of a toy robot moving on a square tabletop, of dimensions 5 units x 5 units.
  • There are no other obstructions on the table surface.
  • The robot is free to roam around the surface of the table, but must be prevented from falling to destruction. Any movement that would result in the robot falling from the table must be prevented, however further valid movement commands must still be allowed.
  • Things you can do with this robot PLACE X,Y,F MOVE LEFT RIGHT REPORT

How to Run

iex -S mix

# examples

iex> place 0, 0, "SOUTH"
iex> move
iex> left
iex> move
iex> report

About

Toy Robot Code Test In Elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages