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

  1. A score breakdown beside candidate actions
  2. A heuristic value at the leaves of a search tree
  3. A debug overlay that explains why one option scored higher

Sources

  1. Georgios N. Yannakakis and Julian Togelius, Artificial Intelligence and Games, ch. 2, pp. 43-44The utility function estimates how good the current game configuration is for a player.
  2. David Rez Graham, An Introduction to Utility Theory, Section 9.2.1Because 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