Skip to content

Commit 00bb277

Browse files
committed
Updating docs to use syntax, contributors
1 parent c187300 commit 00bb277

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

docs/contributor-guide/authors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ Rory O'Kane <https://github.com/roryokane><br>
1717
Stuart Lee <https://github.com/beeglebug><br>
1818
surrim <https://github.com/surrim><br>
1919
Tapio Vierros <https://github.com/tapio><br>
20+
Thomas Hunter II <https://github.com/tlhunter><br>
2021
Willem Mulder <https://github.com/willemmulder><br>
2122
Xueqiao Xu <https://github.com/qiao>

docs/user-guide/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var matrix = [
1010
[1, 0, 0, 0, 1],
1111
[0, 0, 1, 0, 0],
1212
];
13-
var grid = new PF.Grid(5, 3, matrix);
13+
var grid = new PF.Grid(matrix);
1414
var finder = new PF.AStarFinder();
1515
//Find path from (1, 2) to (4, 2)
1616
var path = finder.findPath(1, 2, 4, 2, grid);
@@ -48,4 +48,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
4848
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
4949
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
5050
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
51-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
51+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

docs/user-guide/obstacles.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var walkabilityMatrix = [[0, 0, 0, 0, 0],
99
[0, 0, 0, 0, 0],
1010
[1, 1, 1, 1, 0],
1111
[0, 0, 0, 0, 0]];
12-
var grid = new PF.Grid(5, 7, matrix);
12+
var grid = new PF.Grid(matrix);
1313
```
1414

1515
The _walkabilityMatrix_ defines which cells are walkable and which have
@@ -41,4 +41,4 @@ PathFinding.js will find the following path:
4141

4242
Notice how the path moves diagonally where it can, thus making it shorter. This
4343
may not be always desirable and you may want to create a path without any
44-
diagonal movement. Read the next section to find out how to achieve that.
44+
diagonal movement. Read the next section to find out how to achieve that.

0 commit comments

Comments
 (0)