1.1.0 • Published 3 years ago

mazavatar v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Mazavatar

Generate maze by username

Screenshot

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

  • Implement Growing Tree algorithm
  • Output file
  • Move recursion to iteration
  • 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.

License

MIT