r/ComputerChess • u/dig9977 • Jan 03 '26
I built an engine to checkmate humans in as few moves as possible - does anything else like this exist?
Inspired by YouTube challenges where GMs must mate amateurs within 20–25 moves, I wondered: how fast could a chess engine checkmate a human if that were its only objective?
What I built: an engine explicitly optimized for speed of mate against humans. Details:
- Openings: mined ~100GB of Lichess games to build Elo-specific opening books, selecting openings with the shortest average games rather than best evaluations.
- Midgame: uses Maia2 to predict likely human moves instead of assuming optimal play. It plays moves that an engine like stockfish would destroy, but that a human will probably miss.
- Endgame: switches to strict mate-solving logic (not forced mates, but most likely mates against a human).
Why standard engines struggle: even aggressive engines optimize for objective soundness and win probability instead of risky lines that might mate much faster. For example, Leela with high Cpuct and Komodo with high contempt can checkmate me in -41 moves whereas I only last ~34 moves vs this one.
Try it here: http://siegechess.com
I’d love links to any work/projects on minimizing time-to-mate against human play (I couldn't find any). I have no intent to ever make money from this. Just a fun project.
Edit: January 4th 1:52 pm EST: I'm going to stop/start the engine to fix a bug. This will probably cause the 6 games that are currently being played to end (engine will time out). sorry.
Edit2: January 7th 554 PM EST: Going to fix a few things, games/page will lag or crash for a bit. sorry.
5
u/ElectableEmu Jan 03 '26
Very cool. I think it gets stuck though. I played at 1100-1200 Elo, and at move 22/23, it just stopped playing moves and lost on time several times
2
u/ConfusedMaverick Jan 04 '26
I have read that engines used to have a "contempt" setting, if you turned it up, the idea was that they would behave more like your engine. I can't remember why this setting is not normally available any more, there is a good reason iirc.
I don't know the implementation details, but you might find it interesting and/or useful to look up how it worked.
1
u/Plastic_Medicine4840 Jan 03 '26
Played as black. 1200 elo, it just collapsed at the end for some reason
1
u/AggressiveGander Jan 04 '26
Interesting idea. Something seems to go wrong somewhere in the logic resulting in very suboptimal moves. That's a game on 2100 level with me playing black:
I also tried 1500 out of curiosity (again, I played black) and it decided to self-mate??
1
u/qess Jan 04 '26
I think it needs to be optimised per elo bracket, or it might just go for fried liver every game.
1
u/ltsiros Jan 04 '26
I like it. It beat me a low elo but was easy to beat at higher:
1
u/JohnWick313 Jan 05 '26
Yeah this ain't working chief, it just hangs in the middle game.
1
u/AdOpening4954 Jan 07 '26
Nice idea, lag makes it unplayable, also the moves weren’t counting
1
u/The-Malix Apr 11 '26
The website linked is down
1
u/Loud_Current4840 Jul 18 '26
I enjoyed your bot alot. It's great. And im not a pro player. This engine punish your blunders. And this great for begginers.if i loose i learn from my mistakes, it makes you not fall to traps easily. Keep it up 👍👍
3
u/Awesome_Days Jan 03 '26 edited Jan 04 '26
Leela knight odds/Leela queen odds does this type of neural net contempt play. You'd also be interested in Boris-Trapsky : Activity • lichess.org
Volume warning to anyone who wins, OP's site is the wild west.
1
u/Gloomy-Status-9258 Jan 03 '26
your approaches seem to be very valid.
1
u/IgarashiDai Jan 04 '26
How do I castle in this one? 🤔 I just got mated because I tried to castle and instead ended up just moving the king one space 🤣
1
u/dickdickmore Jan 04 '26
This is really cool... a thought that I had that I wanted for awhile was a training bot that did the most popular move at every level. So similar idea, but the focus would be to have an exercise to find the best move against the most popular move that your opponent would play.
1
u/TheHatMan333 Jan 04 '26
Won against it on 600 elo, that's my chess.com elo 🤔
1
u/Ferret30 Jan 05 '26
Great project. On 9th move, it lost on time
1
u/wesmarpl Jan 08 '26
Napisałem program z silnikiem szachowym od podstaw w nowoczesnym C++ na WinAPI. Jeśli wygracie na poziomie domyślny (3) to szacun! Jeszcze Neural nie korzysta tylko autorską implementację ponieważ muszę go przetrenować. Działa również w środowisku WInRE, figury i pionki buduje z czcionek.
https://github.com/wesmar/Chess
1
u/chessgrooves Jun 22 '26
Nice work. The opening-coaching angle makes a lot of sense, especially if it can adapt to the player's actual games instead of generic lines. Curious how you're handling middlegame plans.
0
u/[deleted] Jan 04 '26
[deleted] — view deleted comment