Generate maze by username
$ npm install -g mazavatar
$ 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
╭───┬───┬─────────┬───────────────────┬─╮
├─╮ ╵ ╷ │ ╭─────╮ ╰───╮ ╭───────┬───╮ ╵ │
│ ╰───┤ ╵ │ ╷ ─┴───╮ ╵ │ ───╮ ╵ ╷ ╰─ │
│ ╷ ╷ ╰───┤ ╰─────╮ ├───┴───╮ ╰───┼───┬─┤
│ │ ├───╮ ├───┬─ │ ╵ ╭─╮ ╭─┴───╮ ╵ ╷ │ │
│ │ ╵ ╷ ╰─╯ ╷ ╵ ╭─┴───┤ │ ╵ ╷ ─┴───┤ ╵ │
│ ╰─┬─┴─┬───┴───╯ ╭─╮ ╵ ╰─┬─┴─────╮ ├─ │
├─╮ ╵ ╷ │ ╭─┬───┬─╯ ╰───╮ ╵ ╭─── │ ╵ ╭─┤
│ ╰───┤ ╵ │ ╵ ╷ ╵ ╭─╮ ╭─┴───┤ ─┬─┴─┬─╯ │
│ ─╮ ├───╯ ╭─┴───╯ │ ╵ ╭─ ╰─╮ ╵ ╷ │ ╷ │
├─╮ │ ╵ ╭───╯ ─╮ ╷ ├───┤ ╭───┴───┤ ╵ │ │
│ │ ╰─┬─┴─┬─────╯ │ ╵ ╷ │ ╵ ╭─╮ ╷ ╰───┤ │
│ ╰─╮ ╵ ╷ │ ╭─┬───┴───┤ ╰───╯ │ ├───╮ │ │
│ ─┴───┤ ╵ │ ╵ ╷ ╭───┴─┬───╮ │ ╵ ╷ ╰─╯ │
│ ─╮ ─┴───┤ ─┤ ╵ ╷ ─╯ ╷ ╵ ├───┴─────┤
├─╮ ╰─┬─── ╰─╮ ╰───┴─┬───┼───┼───── ╷ │
│ ├─ │ ╭─────┴───── │ ╷ ╵ ╷ │ ╭───┬─╯ │
│ ╵ ╭─┤ ╵ ╭───────────╯ ├───┤ ╵ │ ╷ ╵ ╭─┤
│ ─╯ ╰───┤ ─────┬─┬───╯ ╭─┴─┬─╯ ├───╯ │
├─────── ╰───── │ ╵ ╷ ─╯ ╷ ╵ ─╯ ╭─ │
╰─────────────────┴───┴─────┴───────┴───╯
- Implement Growing Tree algorithm
- Output file
- Move recursion to iteration
- Support change hash algorithm
- Implement Typescript
- Implement Prim
- Implement Kruskal
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.