Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Made the ReadMe easier to Read Me
  • Loading branch information
thechayed authored Sep 18, 2023
1 parent aa99912 commit 82d540d
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 @@ -32,7 +32,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.
// 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.
var position = grid.GetPositionOf(value);
var x = position.x;
var y = position.y;
Expand All @@ -56,6 +57,7 @@ var predicateColumn = grid.GetColumnMatchingPredicate(x, predicate);
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.
// 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.
var searchdNodes = grid.SearchFromPointMatchingPredicate(x, y, predicate);
```

0 comments on commit 82d540d

Please sign in to comment.