Projects / Robot learning
AlphaZero-style Connect Four
An AlphaZero-style agent for Connect Four written from scratch in PyTorch: bitboard game, residual network, PUCT search and self-play from random weights, scored against minimax depth 1 to 6 at every checkpoint. The final network runs in the browser.
- Against minimax depth 6
- 36 wins, 4 losses in 40 games
- Training
- 120 iterations of self-play, 90 minutes
- Elo against iteration 0
- 688
Run it in your browser

What didn’t work
One training run, 40 games per cell, so differences of a game or two are noise. The minimax opponents are mine, not an external engine, and I make no claim of perfect play.