Knob
Planning horizon
You might say: lookahead, search depth, foresight
How far into future actions and consequences the AI reasons before acting.
- What it does
- Sets whether the opponent reacts to the next moment, commits to a short plan, or searches a deeper future.
- Ask
- How far ahead is useful before prediction becomes too slow, too uncertain or visibly inhuman?
- Typical
- Immediate reaction, a bounded action sequence, or a deeper tree search with a cutoff and evaluation function.
- Trouble
- The AI misses an obvious consequence, suffers a horizon effect, or spends its budget planning a future that changes immediately.
What to look for
- A one-step choice beside a multi-step plan trace
- A search tree cut off at a marked depth
- A plan that replans when the next fact invalidates it
Sources
- Georgios N. Yannakakis and Julian Togelius, Artificial Intelligence and Games, ch. 2, pp. 43-44
almost all actual applications of the Minimax algorithm cut off search at a given depth, and use a state evaluation function to evaluate the desirability of each game state at that depth.
- Michael Dawe, Steve Gargolinski, Luke Dicken, Troy Humphreys, and Dave Mark, Behavior Selection Algorithms: An Overview, Section 4.6
The plan tells you what to do, but not necessarily how to do it.
Use it on your project
teardown-apply: hold "Planning horizon" (planning-horizon) from the teardown at https://teardownatlas.com/game-ai/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal