Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

moveHeuristicMult

Multiplier for the heuristic function in the A* pathfinding algorithm. Higher values make the pathfinder prefer more direct routes (greedy behavior) at the cost of potentially missing shorter detour paths. Lower values produce more thorough but slower searches.

Default value: 93.

In Python, use GetMoveHeuristicMult() / SetMoveHeuristicMult(value).

Множитель эвристической функции в алгоритме поиска пути A*. Большие значения заставляют поиск пути предпочитать более прямые маршруты (жадное поведение) ценой возможного пропуска коротких обходных путей. Меньшие значения дают более тщательный, но медленный поиск.

Значение по умолчанию: 93.

В Python используйте GetMoveHeuristicMult() / SetMoveHeuristicMult(value).

Pascal

var moveHeuristicMult: Integer;

Python

def GetMoveHeuristicMult() -> int: ...
def SetMoveHeuristicMult(Value: int) -> None: ...

Pascal Example

begin
  moveHeuristicMult := 120;
  AddToSystemJournal('moveHeuristicMult = ' + IntToStr(moveHeuristicMult));
end.

Python Example

SetMoveHeuristicMult(120)
AddToSystemJournal(f'moveHeuristicMult = {GetMoveHeuristicMult()}')

See Also

moveTurnCost, MoveXY, GetPathArray