Skip to content

Kalimaha/toyrobot-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

Toy Robot

Go implementation of the famous Toy Robot coding challenge.

Test

With Docker

Build the container with docker build -t toy-robot-go ., then:

docker run -it toy-robot-go ./simon-says test

Without Docker

./simon-says test

Build

With Docker

The following command will generate an executable toyrobot file inside the container:

docker run -it toy-robot-go ./simon-says build

Without Docker

The following command will generate an executable toyrobot file:

./simon-says build

Run

With Docker

docker run -it toy-robot-go go run ./cmd/toyrobot.go resources/exampleA.txt

Without Docker

The executable toyrobot file requires the absolute path to the file containing the instructions for the Toy Robot as input, e.g.:

./toyrobot /tmp/example.txt

Releases

No releases published

Packages

No packages published