Parses a text input and simulates robot movements across a grid.
(Code aptitude test solution)
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
To run dialyzer (type checking):
mix dialyzer
To run the unit tests:
mix test
First compile the executable:
mix escript.build
Then run the application with the robot instructions in a file:
./mars_adventure --file=instructions.txt