OptionalcanCost of entering to from from; non-finite or negative costs are ignored.
Stable identity for a cell; it may be a string, number, or object key.
Maximum accumulated cost, inclusive.
Adjacent cells, in whatever topology the game uses.
OptionalstopOptional game rule that keeps a reached cell from expanding further.
Optional game rule that rejects a candidate before it is reached.