Kalimaha / toyrobot-go

Go version of Toy Robot coding exercise.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Go version of Toy Robot coding exercise.

License:MIT License


Languages

Language:Go 97.8%Language:Dockerfile 1.2%Language:Shell 1.0%