Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 724 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 724 Bytes

MarsAdventure

Description

Parses a text input and simulates robot movements across a grid.

(Code aptitude test solution)

Installation

You'll need Elixir installed, along with the Mix tool.

Clone the repository:

git clone https://github.com/m-doughty/mars_adventure.git

Then cd into the repository, install dependencies and compile:

cd mars_adventure
mix deps.get
mix compile

Running Tests

To run dialyzer (type checking):

mix dialyzer

To run the unit tests:

mix test

Running the Application

First compile the executable:

mix escript.build

Then run the application with the robot instructions in a file:

./mars_adventure --file=instructions.txt