I trained a chess engine to play like humans
Details
- External ID
- 48088819
- Source
- HN
- Company
- —
- Product
- —
- Website domain
- —
- Launched
- May 10, 2026
- Cohort
- —
- Upvotes
- 14
- Upvotes percentile
- 0.6704361873990307
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
I built 1e4.ai - a chess web app where you play against neural networks trained to mimic human Lichess players at specific Elo ranges. There's a separate model for each 100-point rating bucket from ~800 to 2200+, and the bots not only choose human-like moves but also burn clock time, play worse under time pressure, and blunder in human-like ways.Live demo: https://1e4.ai Code: https://github.com/thomasj02/1e4_aiA few things that might be interesting:- Trained on almost a full year of Lichess blitz games, around 1B total games- Architecture is an a small (~9MM parameters) transformer-based network that takes the board, recent move history, the player's rating, and remaining clock time as input. Three separate models per rating bucket: move, clock-usage, and win probability. The clock model is what makes the bots feel humanish under time pressure rather than instant. Because the move model takes the clock as one input parameter, it also learns to blunder under time pressure like a human might.- Because the network is so tiny, no GPU is needed for inference - it runs easily on a local CPU- Downside of the tiny network is that it's a bit weak as you turn up the rating past around 1700. It can spot short tactics but not long multi-move combinations.- Initial training on a rented 8xH100 cluster, then fine-tunes on my local GPU for different rating ranges- Inspired by Maia-2 and DeepMind's "Grandmaster-Level Chess Without Search". On a held-out Lichess blitz benchmark, the it beats Maia-2 blitz on top-1 move prediction (56.7% vs 52.7%) and pretty substantially on win-probability calibration (Brier 0.176 vs 0.272). Numbers and code in https://github.com/thomasj02/1e4_ai/tree/master/experiments/...- The data pipeline is C++ via nanobind, then training with Pytorch. Getting this right was actually the thing I spent the most time on. Pre-shuffling the dataset and then being able to read the shuffled dataset sequentially at training time kept the GPU utilization high. Without this it spent a huge percentage of time on I/O while the GPU sat idle.Happy to answer questions about the rating-conditioning, the clock model, or the data pipeline.
Enrichment
- Theme
- AI agent games and chess tools
- Vertical
- Horizontal
- Function
- Model & infra
- Audience
- Developer
- AI stance
- AI-native
- Project type
- Hobby / open-source project
- Normalized one-liner
- human-like chess engine
- Manually corrected
- False
Could you build this?
No Training custom neural network models on massive Lichess game datasets to accurately model human error and time usage across distinct Elo bands requires specialized machine learning expertise and significant compute.
What it would actually take: The architecture requires an ETL pipeline parsing billions of moves from Lichess's public database, filtering and segmenting by player rating and clock usage. Custom deep neural networks (policy and move-delay prediction heads, similar to Maia Chess) must be trained for each Elo rating slice using PyTorch/TensorFlow, followed by deployment on an optimized ONNX/TensorRT inference engine connected to a chess server protocol (UCI). This requires specialized expertise in deep learning, behavioral cloning, chess engine programming, and GPU compute resources.
Discussion
3 comments analyzed.
Competitors mentioned: Stockfish
Concerns raised: Rating calibration accuracy against human players, Lichess ratings inflated compared to FIDE/chess.com
Competitors
Other products that read as similar to this one — 346 launches clear the similarity bar, closest 8 shown.
Attention rank: #132 of 347 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 193 days after the earliest competitor.
- Hormuz Havoc, a satirical game that got overrun by AI bots in 24 hours · hn · 2026-04-11 · 54 upvotes · similarity 0.54
- Can a person's chess mind outlive them? An attempt with 41 masters · hn · 2026-04-30 · 5 upvotes · similarity 0.54
- A Claude Code skill to analyze your chess games · hn · 2026-09-26 · 75 upvotes · similarity 0.52
- Chessora · ph · 2026-09-20 · 2 upvotes · similarity 0.51
- Sameshi · hn · 2026-02-14 · 230 upvotes · similarity 0.51
- Coffeehouse Chess · ph · 2026-09-18 · 3 upvotes · similarity 0.51
- Grandmaster Chess Online · ph · 2026-09-17 · 1 upvotes · similarity 0.50
- 99chess · ph · 2026-09-21 · 1 upvotes · similarity 0.49
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a model & infra tool for Fintech yet.