INodeTSelfHeuristic Method

Heuristic function to estimate distances between this node an the other node. For IDA* to work properly, it needs to be admissible (optimistic), meaning heuristic(a,b) <= distance(a,b).

Definition

Namespace: SimpleAIPlayer
Assembly: SimpleAIPlayer (in SimpleAIPlayer.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
int Heuristic(
	TSelf other
)

Parameters

other  TSelf
The node to estimate the distance to.

Return Value

Int32
The estimated distance between the nodes.

See Also