Apex › Storage & databases

How game AI searches (alpha-beta)

The algorithm behind classical game engines — chess, checkers, Othello. Minimax values a position assuming best play (you maximize, the opponent minimizes); alpha-beta pruning gets the identical value while skipping branches it can prove cannot change the decision, so with good move ordering it searches about twice as deep for the same cost. Real minimax + alpha-beta on a game tree (verified: same value as full minimax, fewer nodes, identical on thousands of random trees). Toggle between them and watch the pruned branches grey out.

More in Storage & databases