Program takes in commands and moves one or more robots around Mars.
- Python 3.12.2
- Packages: pip, pipenv, pytest, virtualenv
- Install Python 3.12.2 if you haven't already. You can download Python from the official website at: https://www.python.org/downloads/.
- Clone this repository to a directory of you choice.
$ clone https://github.com/jentyk/mars-expedition.git <your project directory>
- Go into the project directory:
$ cd <your project directory>
- Upgrade pip.
$ pip install --upgrade pip
- Install pipenv.
$ pip install pipenv
- Create virtual environment and install dependencies.
$ pipenv install --dev
- Enter the virtual environment.
$ pipenv shell
- Run tests to check that everything is complete.
$ pytest tests/
- Run mars_expedition.py and start operating your robots.
$ python mars_expedition.py
I designed UI exaclty as stated in the task - i.e. there is no prompt.
I basically treated screenshots in the document describing the task as the design I should follow.
Personally I would add some hints in form of a prompt to make it clear what input is expected at certain points within the workflow.