mazavatar
v1.1.0
Published
Generate maze by username
Downloads
3
Readme
Mazavatar
Generate maze by username
Installation
$ npm install -g mazavatar
Usage
$ mazavatar -h
Usage: mazavatar <Options> <Input>
Options:
-h, --help Show help
-v, --version Show version
-o, --output Create output file
-m, --maze Change maze algorithm
-a, --algorithm Change hash algorithm
-s, --style Change maze style (normal, heavy, arc)
-W, --width Set width of maze
-H, --height Set height of maze
Examples:
$ mazavatar --width 20 --height 20 example
$ mazavatar --width 20 --height 20 --style arc --algorithm md5 username
╭───┬───┬─────────┬───────────────────┬─╮
├─╮ ╵ ╷ │ ╭─────╮ ╰───╮ ╭───────┬───╮ ╵ │
│ ╰───┤ ╵ │ ╷ ─┴───╮ ╵ │ ───╮ ╵ ╷ ╰─ │
│ ╷ ╷ ╰───┤ ╰─────╮ ├───┴───╮ ╰───┼───┬─┤
│ │ ├───╮ ├───┬─ │ ╵ ╭─╮ ╭─┴───╮ ╵ ╷ │ │
│ │ ╵ ╷ ╰─╯ ╷ ╵ ╭─┴───┤ │ ╵ ╷ ─┴───┤ ╵ │
│ ╰─┬─┴─┬───┴───╯ ╭─╮ ╵ ╰─┬─┴─────╮ ├─ │
├─╮ ╵ ╷ │ ╭─┬───┬─╯ ╰───╮ ╵ ╭─── │ ╵ ╭─┤
│ ╰───┤ ╵ │ ╵ ╷ ╵ ╭─╮ ╭─┴───┤ ─┬─┴─┬─╯ │
│ ─╮ ├───╯ ╭─┴───╯ │ ╵ ╭─ ╰─╮ ╵ ╷ │ ╷ │
├─╮ │ ╵ ╭───╯ ─╮ ╷ ├───┤ ╭───┴───┤ ╵ │ │
│ │ ╰─┬─┴─┬─────╯ │ ╵ ╷ │ ╵ ╭─╮ ╷ ╰───┤ │
│ ╰─╮ ╵ ╷ │ ╭─┬───┴───┤ ╰───╯ │ ├───╮ │ │
│ ─┴───┤ ╵ │ ╵ ╷ ╭───┴─┬───╮ │ ╵ ╷ ╰─╯ │
│ ─╮ ─┴───┤ ─┤ ╵ ╷ ─╯ ╷ ╵ ├───┴─────┤
├─╮ ╰─┬─── ╰─╮ ╰───┴─┬───┼───┼───── ╷ │
│ ├─ │ ╭─────┴───── │ ╷ ╵ ╷ │ ╭───┬─╯ │
│ ╵ ╭─┤ ╵ ╭───────────╯ ├───┤ ╵ │ ╷ ╵ ╭─┤
│ ─╯ ╰───┤ ─────┬─┬───╯ ╭─┴─┬─╯ ├───╯ │
├─────── ╰───── │ ╵ ╷ ─╯ ╷ ╵ ─╯ ╭─ │
╰─────────────────┴───┴─────┴───────┴───╯
Todo
- [x] Implement Growing Tree algorithm
- [x] Output file
- [x] Move recursion to iteration
- [x] Support change hash algorithm
- [ ] Implement Typescript
- [ ] Implement Prim
- [ ] Implement Kruskal
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.