Skip to content

Parses a text input and simulates robot movements across a grid (Code aptitude test solution).

Notifications You must be signed in to change notification settings

m-doughty/mars_adventure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Parses a text input and simulates robot movements across a grid (Code aptitude test solution).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages