The Engines
How the computers play
Each game's engine, explained with pictures first and figures you can play with. Every companion also comes as a PDF.
SimplestHardest
- 1Game trees and minimaxHow Tic-tac-toe's computer never losesA companion to the game: every game in one tree, a search that scores it from the end, and a level that misses on purpose
- 2Solving a game backwards from its endHow Chopsticks' computer knows every answerA companion to the game: four fingers a hand, the whole game solved backwards from its end, and the draws that are left over
- 3Bitboards, alpha-beta pruning, opening booksHow Four in a Row's computer never losesA companion to the game: the board as two numbers, a search that proves the result, the tricks that make it fast, and the levels below it
- 4Planning with dice, and a neural network trained by self-playHow Chowka Bhara's computer playsA companion to the game: four shells, a planner that plays out every way to spend a turn, a small network that judges where it ends, how that network learned from its own games, and the deals players make
- 5Judging a position with a network, trading, and honest win chancesHow Silk Board's computer playsA companion to the game: where tokens land, a hand-made judge and a network that corrects it, every action tried with the real rules, trades weighed from both sides, and win chances checked against thousands of games