1992: StreetFighter 2
1992: Outrunners
1992: Wolfenstein 3D
Principle
Precise sampling
Fixed sampling
Commandos (1998)
SneakR (2015)
start := first node
goal := final node
cost := cost from start to current node
estimation := cost estimation from current node to goal
prio := priority of a node
heuristic := priority calculator
PQ := priority queue
1. Create PQ
2. Put start to PQ
3. While PQ is not empty
3.1 current := node from PQ with lowest priority
3.2. for each neighbor of current
3.2.1. if neighbor === goal then FINISH
3.2.2. newCost := cost(start, current) + distance(current, neighbor)
3.2.3. estimation := distance(neighbor, goal)
3.2.4. prio := heuristic(newCost, estimation)
3.2.5. if there already is a node with lower priority prio in PQ, goto 3.2
3.2.6. put neighbor with priority prio to PQ
3.2.7. goto 3.2.
3.3. goto 3
State machine