playing chess through a CNN
- 1 Devlogs
- 55 Total hours
chesscnn — an AlphaZero-style chess engine that plays from a neural network instead of hand-coded rules. A convolutional neural net (PyTorch: residual tower with separate policy + value heads) reads the board as a 19-plane tensor and outputs move probabilities + a position score, and a PUCT Monte-Carlo Tree Search uses those to choose moves. It comes with a full training stack (self-play, replay buffer, PGN bootstrap, arena/Elo), a CLI, and a Streamlit web app where you play the engine and watch its eval bar, principal variation, and policy heatmap live. ~9,000 lines of Python, 53 passing tests; python-chess guarantees every move is legal.