https://github.com/undr/robo
Test Task
https://github.com/undr/robo
coding-challenge elixir
Last synced: 8 months ago
JSON representation
Test Task
- Host: GitHub
- URL: https://github.com/undr/robo
- Owner: undr
- Created: 2019-03-05T12:42:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-05T12:51:43.000Z (over 7 years ago)
- Last Synced: 2025-01-15T23:25:20.005Z (over 1 year ago)
- Topics: coding-challenge, elixir
- Language: Elixir
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Robo
The application is a simulation of a toy robot moving on a square tabletop.
Available commands:
- `MOVE`
- `LEFT`
- `RIGHT`
- `REPORT`
- `PLACE x,y,FACING`
The origin (0,0) can be considered to be the SOUTH WEST most corner.
FACING can be any of: `NORTH`, `EAST`, `SOUTH`, `WEST`.
## Installation
```
brew update
brew install elixir
mix escript.build
```
## Usage
```
./robo --help
Robo is a solution of test task for Locomote company.
Usage: robo [options]
--file FILE File with a list of commands. Omit this option if you want read commands from console.
--size SIZE Size of a table (default: 5).
--help This info.
Examples:
robo --file ./comands.txt --size 25
```
## Tests
```
mix test
```