Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ysdexlic/martian-robots
code challenge for red badger
https://github.com/ysdexlic/martian-robots
Last synced: about 8 hours ago
JSON representation
code challenge for red badger
- Host: GitHub
- URL: https://github.com/ysdexlic/martian-robots
- Owner: ysdexlic
- Created: 2020-02-24T23:30:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T08:57:30.000Z (over 3 years ago)
- Last Synced: 2023-03-10T17:51:46.525Z (over 1 year ago)
- Language: TypeScript
- Size: 692 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Martian Robots
### Why I made some of decisions I did:
- Created a grid class to make it more extendable in the future
- Set the lost robots coordinates to their last known rather than changing to their “actual” position as it made life a little easier to output the info, however, it wouldn’t be much more effort to get the info from the lost scent instead.### If I had more time I would
- Add react tests, I added the frontend quite late as a way to input the data
- Add spies to the tests (Sinon or similar)
- Create a front end interface to add input from
- Better tooling (test watcher, prettier/better linting, etc.)
- Cleaner conversion from strings to int
- Probably would have used a much smaller framework (or none at all) to render the frontend## Running the app
- `yarn` will install the dependencies
- `yarn start` will start the server at [localhost:9000](http://localhost:9000)
- `yarn run test` will run the testsoptionally you can use NPM, in which case the steps would be:
- `npm install`
- `npm start`
- `npm run test`