https://github.com/igrishaev/mars-task
Mars and robots task
https://github.com/igrishaev/mars-task
Last synced: 6 months ago
JSON representation
Mars and robots task
- Host: GitHub
- URL: https://github.com/igrishaev/mars-task
- Owner: igrishaev
- Created: 2016-09-14T11:55:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T12:58:13.000Z (over 9 years ago)
- Last Synced: 2025-02-24T00:26:02.308Z (11 months ago)
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The main points on that task:
- The sample input provided with the task gives expected result.
- I tried to solve the task without any additional libraries, just plain Python.
- There aren't classes or objects inside, just tuples for simplicity.
- There is a quick-and-dirty test suite inside. It's compatible with PyTest. I
added my own test runner system to not depend on PyTest library.
- Tested with Python 2.7
Example:
```
cat sample.txt | python mars.py
1 1 E
3 3 N LOST
2 3 S
```