Giter Club home page Giter Club logo

marsrover's Introduction

Mars Rover

Elixir CI

This tech test was a lot of fun. I did time box it to the two hours, but thankfully I noticed on the brief I could extend it to 3 :)

Running the program

mix compile
mix run start.exs

This will put you into the program such that you can input your data as is mentioned on the brief, i.e.

4 8
(2, 3, E) LFRFF
(0, 2, N) FFLFRFF

Rover Instructions

Enter grid size (m x n):

4 8

Add as many robots as you like on a new line after hitting return: "(x, y, orientation) commands)"

(2, 3, E) LFRFF
(0, 2, N) FFLRFF
(2, 3, N) FLLFR
(1, 0, S) FFRLF

Hit return as a blank entry after the last robot to see results:

(4, 4, E)
(0, 4, N) LOST
(2, 3, W)
(1, 0, S) LOST

Given more time

  • I would like to have made the inputs safer to ensure more reliable data to use. For example, entering "crash" would lead to a crash.

  • A docker image would also have been a nice to have. Because it's such a simple program that relies on the terminal only, being installation agnostic would have been a nice touch for the user experience.

marsrover's People

Contributors

shmink avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.