Skip to content

Commit 03b2634

Browse files
committed
fix: updates readme
1 parent 5b97598 commit 03b2634

File tree

1 file changed

+23
-56
lines changed

1 file changed

+23
-56
lines changed

README.md

Lines changed: 23 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -10,62 +10,29 @@ Utilities to generate, render and hack with any sort of mazes.
1010
npm i mazes101 --save
1111
```
1212

13-
## Usage
14-
15-
### For commonjs modules (nodejs)
16-
17-
```js
18-
let maze = require('mazes101');
19-
20-
// 1. create an empty board
21-
let {newBoard} = maze.Boards.rectangular;
22-
let board = newBoard({height: 20, width: 20});
23-
24-
// 2. generate maze in that board
25-
let {getRows, getNeighbours, removeInterWall} = maze.Boards.rectangular;
26-
let {generate} = maze.Generators.kruskal;
27-
board = generate(board, {getRows, getNextRowNeighbours, removeInterWall});
28-
29-
// 3. render the board
30-
let {render} = maze.Renderers.rectangularSvg;
31-
const svgString = render(board);
32-
```
33-
34-
### For ecmascript modules
35-
36-
```js
37-
// 1. create an empty board
38-
import {newBoard} from 'mazes101/boards/rectangular';
39-
let board = newBoard({height: 20, width: 20});
40-
41-
// 2. generate maze in that board
42-
import {getRows, getNeighbours, removeInterWall} from 'mazes101/boards/rectangular';
43-
import {generate} from 'mazes101/generators/eller';
44-
board = generate(board, {getRows, getNeighbours, removeInterWall});
45-
46-
// 3. render the board
47-
import {render} from 'mazes101/renderers/rectangularSvg';
48-
const svgString = render(board);
49-
```
50-
51-
Code in completely purgeable so only the bits that your are using will be bundled. For example, the following code
52-
bundles to only 3KBs.
13+
## Status
14+
15+
The project is still under development and therefore contributions are welcomed here is the Status of the project:
16+
17+
- [ ] Boards
18+
* [x] Rectangular Board
19+
* [x] Weave Board
20+
* [x] Circular Board
21+
* [ ] Triangular Board
22+
* [ ] Hexagonal Board
23+
- [x] Generators
24+
* [x] Aldous Broder
25+
* [x] Backtrack
26+
* [x] Eller
27+
* [x] Kruskal
28+
* [x] Prim
29+
* [x] Sidewinder
30+
* [x] Wilson
31+
- [x] Renderers
32+
* [x] SVG
33+
* [x] Canvas
5334

5435
## Contributions
55-
If you feel something is missing or something can be done better
56-
feel free to open an issue or direct create a PR for that. Following
57-
this a basic overview of progress on this project. We can also pickup
58-
anything that is not implemented yet.
59-
60-
## For development
36+
If you feel something is missing or something can be done better feel free to open an issue or direct create a PR for that. Following this a basic overview of progress on this project. We can also pickup anything that is not implemented yet.
6137

62-
```sh
63-
# to build mazes101 in watch mode
64-
npm run watch
65-
66-
# to serve documentation
67-
pipenv run mkdocs serve
68-
69-
# to build documentation
70-
pipenv run mkdocs build
71-
```
38+
I'm also thinking to port the code base to other languages, current Python & Dart are in my wishlist so any contributions to porting are also welcomed.

0 commit comments

Comments
 (0)