Pathfinding
Five grid search algorithms side by side on walls you draw. The search […]
Vision, audio, deep learning
6 projects02Search, planning, play
6 projects03Desktop, web, systems
3 projects04Pull requests, plugins, tools
6 projects05Animation, 3D, generative visuals
2 projects06Logos, interfaces, systems
3 projectsDrop discs and line up four, against an AI you can switch between minimax, alpha-beta, Monte Carlo tree search and simpler players. Written first in Python, rebuilt for this page in TypeScript.
The first version of this game and its AI was written in Python. Python does not run in a browser, so the board you can play here is a TypeScript rewrite of the same ideas. Pick any of the five opponents below.
Plays out every sequence of drops to a chosen depth, assuming you always answer with your best move, and picks the first move of the best sequence.
The same search with two running bounds so that hopeless branches are never explored. Trying the centre column first makes the cuts come earlier.
Judges a column by how often random games that start with it end in a win, concentrating the games on the promising columns as it learns.
Greedy picks the column whose resulting position scores best right now; random drops anywhere. Beating them is the minimum bar for a real search.
Each of these has a page of its own, with the steps, the cost and the other places it is used.
Five grid search algorithms side by side on walls you draw. The search […]
A tic-tac-toe opponent that cannot be beaten, built on minimax with […]