Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreafspeziale/maze-retro-route-puzzle
🧩 A-Maze-ingly retro route puzzle
https://github.com/andreafspeziale/maze-retro-route-puzzle
Last synced: 4 days ago
JSON representation
🧩 A-Maze-ingly retro route puzzle
- Host: GitHub
- URL: https://github.com/andreafspeziale/maze-retro-route-puzzle
- Owner: andreafspeziale
- Created: 2019-12-14T13:30:09.000Z (almost 5 years ago)
- Default Branch: dev
- Last Pushed: 2023-03-03T11:21:06.000Z (over 1 year ago)
- Last Synced: 2024-04-29T23:18:12.459Z (7 months ago)
- Language: JavaScript
- Homepage: https://hub.docker.com/r/andreafspeziale/maze-retro-route-puzzle
- Size: 193 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
[![CircleCI](https://circleci.com/gh/andreafspeziale/maze-retro-route-puzzle.svg?style=svg)](https://circleci.com/gh/andreafspeziale/maze-retro-route-puzzle)
# A-Maze-ingly retro route puzzle
It outputs a puzzle path in order to collect all the given items from a given puzzle and starting point.## Quickstart
- `$ npm i`
- `$ node ./bin/retro-puzzle-cli.js`It prompts the cli available commands.
## Example
- `$ node ./bin/retro-puzzle-cli.js puzzle resolve -p '[{"id":1,"name":"Hallway","north":2,"objects":[]},{"id":2,"name":"Dining Room","south":1,"west":3,"east":4,"objects":[]},{"id":3,"name":"Kitchen","east":2,"objects":[{"name":"Knife"}]},{"id":4,"name":"Sun Room","west":2,"objects":[{"name":"Potted Plant"}]}]' -i '["Potted Plant", "Knife"]' -s 2 | npx bunyan`## Docker
You can use the cli even without having NodeJS installed.- `$ docker build -t retro-puzzle-cli .`
- `$ docker run retro-puzzle-cli puzzle resolve -p '[{"id":1,"name":"Hallway","north":2,"objects":[]},{"id":2,"name":"Dining Room","south":1,"west":3,"east":4,"objects":[]},{"id":3,"name":"Kitchen","east":2,"objects":[{"name":"Knife"}]},{"id":4,"name":"Sun Room","west":2,"objects":[{"name":"Potted Plant"}]}]' -i '["Potted Plant", "Knife"]' -s 2`## Test
You can run the test both:- installing the dependencies and running it with `$ npm run test:unit`
- overriding the docker image entry point afte the build with `$ docker run --entrypoint npm retro-puzzle-cli run test:unit`