edxzh / edward_robot

Elixir solution of classic interview code exercise robot simulator from Edward Zhou

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edward Robot

CircleCI

About

This project is an Elixir solution for the classic code exercise: toy robot simulator

Custodian

Edward Zhou(edwardzhou1990@gmail.com)

Envrionment

Elixir 1.13 or Docker

Install

if Elixir 1.13 has been installed on your local

$ mix deps.get

if not please use docker

$ docker build -t edward_robot .

Usage

open iex

$ iex -S mix

or

$ docker run -ti edward_robot iex -S mix
iex> place 5, 5, :east
iex> move
iex> left
iex> right
iex> report
iex> move
iex> report

Development

Testing

$ mix test

Style check

$ mix credo

About

Elixir solution of classic interview code exercise robot simulator from Edward Zhou


Languages

Language:Elixir 99.2%Language:Dockerfile 0.8%