Skip to content

Nguyen-Hoang-Nam/mazavatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate maze from text

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published