Search

1.2 Adversarial Problems

Deterministic Games: Many possible formalizations, one is: - States: \(S\) (start at \(s_0\)) - Players: \(P = \{1, \ldots, N\}\) (usually take turns) - Actions: \(A\) (may depend on player / state) - Transition Function: \(S \times A \to S\) - Terminal Test: \(S \to \{t, f\}\) - Terminal Utilities: \(S \times P \to \mathbb{R}\)

  • Solution for a player is a policy: \(S \to A\)

Zero-Sum Games vs. General-Sum Games

1.2.3 Heuristic Minimax

Depth-limited search: Replace terminal utilities with an evaluation function for non-terminal positions. More plies makes a BIG difference. Use iterative deepening for an anytime algorithm.

In practice: typically weighted linear sum of features:

\[ \operatorname{Eval}(s) = w_1 f_1(s) + w_2 f_2(s) + \cdots + w_n f_n(s) \]

e.g.

\[ f_1(s) = (\text{num white queens} - \text{num black queens}), \]

etc.