Part
Evaluation function
You might say: heuristic, state score, value function, utility function
A function that turns a state, action or outcome into a comparable score.
- What it does
- Gives search and utility selection a practical estimate of goodness when exact outcomes are too expensive or unknown.
- Ask
- Which outcomes does this score reward, which does it ignore, and can its scale be compared across options?
- Trouble
- The AI optimises a proxy while losing the match, or a small score error makes it choose visibly absurd actions.
What to look for
- A score breakdown beside candidate actions
- A heuristic value at the leaves of a search tree
- A debug overlay that explains why one option scored higher
Sources
- Georgios N. Yannakakis and Julian Togelius, Artificial Intelligence and Games, ch. 2, pp. 43-44
The utility function estimates how good the current game configuration is for a player.
- David Rez Graham, An Introduction to Utility Theory, Section 9.2.1
Because utility scores are compared to each other to come up with a final decision, they must all be on the same scale across the entire system.
Use it on your project
teardown-apply: hold "Evaluation function" (evaluation-function) 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