Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
auspham committed Jul 13, 2020
1 parent 3f68b58 commit 9ea22d1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ const Byakugan = require('byakugan-js'); // ignore if using CDN

const settings = {
grid: [
[1, 3, 0, 0],
[1, 0, 0, 0],
[1, 0, 0, 0],
[0, 0, 0, 0],
[0, 1, 0, 0],
[0, 1, 1, 1],
[3, 0, 0, 1],
[0, 0, 0, 1],

],
obstacles: [1,3], // Obstacle tiles
Expand All @@ -62,7 +62,8 @@ const paths = byakugan.search(0,1,3,3);
*Example:*

```js
Byakugan.search(0,1,3,3); // Find path from grid[0][1] to grid[3][3]
let byakugan = new Byakugan(settings)
byakugan.search(0,1,3,3); // Find path from grid[0][1] to grid[3][3]
```

Return:
Expand Down Expand Up @@ -136,6 +137,3 @@ The above configuration will use `eucludian` distance for `normal` movement and
## Contribution

Contributions are very welcome. Simply fork this project and make [pull requests](https://github.com/rockmanvnx6/byakugan/pulls).



0 comments on commit 9ea22d1

Please sign in to comment.