Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Made the ReadMe even easier to Read Me
  • Loading branch information
thechayed authored Sep 18, 2023
1 parent 82d540d commit 0358a4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ grid.MoveValueToPosition(value, 3, 9);
- You can search the Grid for Values
``` c#
// Gets an X, Y position Tuple for the Node with the given Value
// (given everything previously done, the Tuple Values will be x:3, y:9) and sets local x and y values to the Tuple values.
// (given everything previously done, the Tuple Values will be x:3, y:9)
// and sets local x and y values to the Tuple values.
var position = grid.GetPositionOf(value);
var x = position.x;
var y = position.y;
Expand All @@ -58,6 +59,7 @@ var predicateAdjacent = grid.GetAdjacentMathcingPredicate(x, y, predicate);
var predicateRange = grid.GetRangeMatchingPredicate(x, y, range, predicate);

// Finally, you can search iteratively for values based on a predicate,
// starting from the position, and continuing until the conditions of the predicate are not met for any of the relative Nodes.
// starting from the position,
// and continuing until the conditions of the predicate are not met for any of the relative Nodes.
var searchdNodes = grid.SearchFromPointMatchingPredicate(x, y, predicate);
```

0 comments on commit 0358a4e

Please sign in to comment.