Theseus port https://github.com/jamis/theseus version 1.0.2
Theseus is a library for generating and solving mazes. It also includes routines for rendering mazes (and their solutions) to both ASCII art, and to PNG image files.
There is also an included utility for generating mazes from the command-line.
Theseus supports the following types of mazes:
Mazes may be generated using any of the following features:
Theseus supports the following output types:
Theseus supports the following solution algorithms:
Orthogonal mazes may be converted to their unicursal equivalent. A unicursal maze is one which has only a single path that covers every cell in the field exactly once. This style is maze is often called a "labyrinth". See Theseus::OrthogonalMaze#to_unicursal for more information.
Theseus is also designed to allow you to step through both the generation of the maze, as well as the computation of the solution. This lets you (for instance) animate the construction (and solution) of the maze by drawing individual PNG frames for each step! And since Theseus includes an implementation of A* Search, this gives you an interesting way to visualize (among other things) how that algorithm works.
Lastly, Theseus can be used to manually build mazes (or any other grid-based structure) by hand. See Theseus::Maze for more information.
Theseus is designed to be super simple to use. See 'example' folder.
Theseus is created by Jamis Buck. It is made available in the public domain, completely unencumbered by rules, restrictions, or any other nonsense.
Please prefer good over evil.
Add this to your package's pubspec.yaml file:
dependencies: theseus: "^1.0.3+2"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.3+2||Jun 19, 2016|
|1.0.3+1||Jun 19, 2016|
|1.0.3||Jun 18, 2016|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, web, other
No platform restriction found in primary library
Fix analysis and formatting issues.
Analysis or formatting checks reported 22 errors 28 hints.
Strong-mode analysis of
lib/src/maze.dartfailed with the following error:
line: 944 col: 44
The function expression type '(List<dynamic>, int) → bool' isn't of type '(dynamic, int) → bool'. This means its parameter or return type does not match what is expected. Consider changing parameter type(s) or the returned type(s).
Strong-mode analysis of
lib/src/path.dartfailed with the following error:
line: 113 col: 26
The argument type '(Position, dynamic) → Null' can't be assigned to the parameter type '(dynamic, dynamic) → void'.
Similar analysis of the following files failed:
Maintain an example.
None of the files in your
example/directory matches a known example patterns. Common file name patterns include:
example.dartor you could also use