Skip to content

chriscwej/robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot v1.0

Toy Robot Code Challenge

Developer: Mark Longmuir
Language: C# .NET Core

Description:

Simulates a robot moving on a square tabletop of 5x5 units

Build & Run:

  • Open Robot.sln and build and run in Visual Studio 2017
  • Or from Robot sub-directory:
    • dotnet run RobotApp.csproj

Unit & function tests:

  • Run tests in VS2017 test runner
  • Or from RobotTest sub-directory:
    • dotnet test RobotTest.csproj

Commands:

Accepts input from the command line.
Reports write to standard output.
Diagnostic information to standard error.

PLACE X,Y,F - Positions the robot at X, Y with bearing F (NORTH, EAST, SOUTH, WEST)
MOVE - Moves the robot one step forward
LEFT - Turns the robot left 90 degrees
RIGHT - Turns the robot right 90 degress
REPORT - Prints the robot's current position
END - Exits the program (or blank row)

About

Toy Robot Code Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages