r/ComputerChess • • Sep 22 '26

I put Maia + Stockfish in the browser to make a bot that blunders like a human — plus a "grandpa" that explains your moves

Post image
0 Upvotes

I've been working on a free browser chess game where the opponent is meant to play like a real human of a given level, not like a weakened engine. Sharing it here because the implementation details might interest this sub, and I'd love feedback.

How it works

  • System 1 (instinct): Maia-1 nets (1100–1900) converted from lc0 weights to ONNX with lc0 leela2onnx and run client-side with onnxruntime-web. ~3.5 MB per level, 3–12 ms per move.

  • I wrote the lc0 112-plane input encoding and the 1858-move policy mapping in JS. I checked it against lc0 itself (go nodes 1, VerboseMoveStats, PolicyTemperature 1, HistoryFill no, NNCacheSize 0): same probabilities on ~2,400 game positions across three nets, mean absolute difference 0.06%.

  • System 2 (guard): Stockfish.js 19 lite single-threaded (WASM, 1.8 MB). Maia proposes, Stockfish checks the top candidates with searchmoves + MultiPV. Whether the bot notices its own blunder depends on its level. Losses are measured in win probability, not centipawns, so going from +7 to +5 doesn't count as a blunder.

  • Grandpa coach: after each of your moves it explains what the move does (develops, takes the centre, attacks X, leaves Y hanging…), what the refutation is and why the engine's move was better. It also names the opening (lichess chess-openings, CC0).

Move-matching on real Lichess games (share of positions where each system predicts the move actually played):

PlayersMaiaold hand-tuned "human" botStockfish d12
1000–120045.8%20.8%32.4%
1400–160051.7%33.2%37.8%
1800–200052.6%36.1%44.1%

Things I learned along the way

  • Maia-2 in ONNX is 85 MB. Full int8 quantization dropped top-1 agreement with fp32 to ~82%. MatMul-only int8 kept ~99% but is still 37 MB, too heavy for a web page, so I stayed with Maia-1.

  • Ensembling neighbouring Maia-1 nets (1300+1500+1700) gave a small but consistent log-loss improvement (1.497 → 1.467) and +0.9 pts top-1.

  • Maia-1 sometimes overrates knight underpromotion. In lc0's policy it shares the index with the plain move, so I move most of that probability to the queen promotion.

  • A general-purpose "decision" model doesn't help. I also tried a general-purpose AI model (TypeSafe's Jev) as the intuition, and as a re-ranker of Maia's top 5. Alone it matched only 20.5%, and every mix was worse than Maia alone.

Free, no sign-up, English and Italian, games autosave locally:
https://www.el-man.it/en/app/chess.html

Credits: Maia by CSSLab (University of Toronto), Stockfish.js by Nathan Rugg / Chess.com, both GPL-3.0 (provenance and licence linked on the page). Feedback on the human-likeness, and ideas for better blunder modelling, very welcome.


r/ComputerChess • • Jun 21 '25

Chess Bots designed to behave more human-like than Chess.com bots

5 Upvotes

Hi, I have designed a simple algorithm to build chess bots (initial version). I use Stockfish and then I simply remove moves that seem too engine-like. I have tested them against chess.com bots and against Lichess bots. I can make my bots play with different strengths, and my 1600-elo bots play at a similar level to chess.com 1600 bots, my 2000-elo bots play as chess.com 2000 bots, and so on. Against Lichess bots, there is not much to conclude as they seem highly underrated and a bit random in performance.

My experience playing against them as a human is that they don't fall repetitively for the same opening traps as it often happens against chess.com bots, and they don't make obvious blunders like not recapturing a piece (which they did earlier). They can also be configured to use the opening repertoire of any chess player in my database (top players). When I make them play between them, the higher-rating bots on average have better results, but sometimes there are some statistical dissonances, and a 1600 bot wins 6 out of 10 against a 2200 bot.

Is there any standard way in which I can evaluate how human-like they perform? I can make them play as Lichess bots or in a portal that I am developing (https://chessbotz.com). I have been trying to contact chess clubs or chess forums, but nobody replies, and I am not even allowed to join chess forums.

To make them play as Lichess bots, I have to initialize them on demand, but if somebody is interested in making tests against his bots or something we could arrange it. I am interested in evaluating how consistently they play at the level they are supposed to play and how human-like they play.

Any help would be appreciated.


r/ComputerChess • • Jul 14 '21

Can we beat stockfish with a better evaluation function?

0 Upvotes

Stockfish has a wiki in which the evaluation function is explained. It consists of different subfunctions which are realized as Javascript / C++ functions. The idea is to score up the values at the end with a certain weight.


r/ComputerChess • • 8d ago

I created a tool that scopes out quietly forcing moves using a cheap move filter to process and grade engine lines (Part 2)

2 Upvotes

DISCLAIMER! If you assume that I sold my soul by using AI to help create a program that will help me improve my online chess rating to the 2500+ rating bracket, you've assumed correctly, and you should READ NO FURTHER! This tool is only designed to be used for people that will do anything to increase their rating! (besides cheating of course)

If you've made it past the Disclaimer and you're still interested in what I've created for myself, I can finally start talking about my program which I've nicknamed chessratio. But first, you have to understand why I created it in the first place, and to what lengths I've gone to improve my chess.

Here's my backstory: I have been a USCF Candidate Master since my High school days where I reached a peak rating of 2185 (15 points away from the sought-after National Master title). Now, many years later, I revived my chess but still found it difficult to climb to 2200. I've gone through multiple chess teachers, multiple training methods, spent hundreds of dollars on every reiteration of ChessBase plus its Databases, studied opening theory & middlegames for over 3000 hours, read through plenty of highly-technical chess books, and STILL found myself lacking in theoretical knowledge and know-how. By the time Chessable was on the rise, I was sick & tired of all of it: you memorize some random lines that a Grandmaster recommends but then your opponent plays a rare variation that was completely skipped over and you're left fumbling at all the crazy attacks thrown at you. After many cycles of study-lose-repeat, I started wondering to myself if there was a better, faster way at improving my chess.

So it got me thinking... what can I do to streamline the study process? Increasing your tactical strength can only take you so far; there is a soft limit to the human brain and its ability to see tactics, and I had definitely already hit mine. I used the lichess opening explorer to constantly brainstorm for improvements on what openings I was playing (which was an amazing tool, I ended up creating nearly FOUR-HUNDRED lichess studies, many of them over 40 chapters long of just moves and evaluation markers). But after brainstorming for so long, I realized that there has got to be more to chess than what I've been able to find just by using initial statistics/ evaluations and my own game-sense. There are bound to be cool ideas that have hardly been played and might be disguised or completely covered by bad win rate statistics. And so I started working on building my own tool to scrape and re-interpret lichess game data. What started as just a silly training concept ended up becoming extremely time-consuming to create, and at a certain point I was too deeply committed to the project to quit. That project is https://chessrat.io/.

The first purpose of my project was to map out and visualize error frequencies of each side within every variation. I took millions of competitive online games (2500+) and processed game position counts up to 40 ply, then tied each of those position FENs to an evaluation using a Chinese cloud-based Stockfish. Then, by grading the evaluation of each sequential position, I was able to build and visualize tree-style error maps that pair perfectly with an opening explorer. I was also able to mark moves where the popular responses would lead to a high-error rate position. In the picture, observe the 'M' notch located at the end of each Black error bar of these moves: h4, Qg3, Kb1, & Bh3. These two things combined were the first real success for me as a chess player seeking better data: I could finally see from afar what moves my opponent would most likely struggle against.

The second purpose of my project was to take the grading of moves a step further by somehow evaluating each move based on its practicality and strength. In my eyes, the ideal move gives my opponent very few options and keeps them predictable so that I can relax and attack. When presented with 5 "equal" moves, which move should you choose? Not all "equal" evaluations are the same: sometimes, equal means quiet and boring; other times, equal can mean that one side is on the verge of getting checkmated and must play 5 defensive moves in the correct order just to survive. So I set out to "fix" the engine's perception of equality in the way that I desired it. I started by grading forceful moves that did not include captures or checks. A move was classified as forcing if it had only one good response, and strength classification was based on how much centipawn the second-best move lost evaluation compared to the first. The filter + eval check process would repeat until the engine reached a position where there were more than one good move (which would no longer be considered "forcing"). I aptly nicknamed this "Quiet Force" (or QForce). Now look again at the photographed position: this position is a commonly-reached Mainstream Najdorf position (it's the Main Line, and we're at White's 14th move). Look at the purple underlines: each of these moves goes straight to a narrow "corridor" which we can consider forceful. Most of these are classified as "STRONG", meaning that if the opponent doesn't play the correct move, they lose over 30 centipawn at any turn. At the press of a button, I could order the engine to evaluate any position I desired in accordance to my special policy.

Because I realized that there was still more that could be done, I ended up mapping out Quiet Forcing moves too. In the picture, many of these moves contain a 5-move corridor (the max on the button is 5). Some of these moves more than likely had longer forceful corridors, but the engine stopped there; configuring to a higher depth searching manually with the browser engine would be much slower and more likely to fail at fetch. So I pre-calculated all forcing lines for at-level positions (positions within 10 centipawns of equal) that had only-move corridors greater than 5 (minimum 6 or more): these are the Barbells.

Now, look at the green boxed move, 14. Qh5. This move has at least a 7-move long corridor, and because it is a solid cyan barbell, the run immediately starts after the move is played (hollow barbells present possible forcing lines in the future but can be avoided). Upon further inspection, White has two different approaches, both of which head right into a forced draw which Black cannot escape. Here's the simple one:

  1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6 6. Bg5 e6 7. f4 Be7 8. Qf3 Qc7 9. O-O-O Nbd7 10. g4 b5 11. Bxf6 Nxf6 12. g5 Nd7 13. f5 O-O 14. Qh5 b4 15. Rd3 bxc3 16. Rh3 Bxg5+ 17. Qxg5 Qd8 18. Qh5 Nf6 19. Qh4 e5 20. Rg1 cxb2+ 21. Kb1 exd4 22. Qg5 g6 23. fxg6 hxg6 24. Bc4 d5 25. Bxd5 Nxd5 26. Rh8+ Kxh8 27. Qh6+ Kg8 28. Rxg6+ fxg6 29. Qxg6+ Kh8 30. Qh6+

As a chess player, this is astounding news! Finding this line means that I've essentially studied the Main Line of the Sicilian Najdorf to a two-outcome game: either the game is a draw or Black stumbles somewhere during the defense. And it couldn't have been made any easier to find without the use of my program. All those long hours of keeping my computer and my laptop awake through the night finally paid off.

To summarize, I feel that any aspiring chess player who wants to improve their chess should try out my training tool. I built it with the competitive player in mind, but honestly it would be helpful to any skill level as long as they can learn to understand what the program is displaying. Again, Guest mode is available to anyone too skeptical to try it out otherwise. There is a mobile version and tablet version of the website as well, but the entire thing is still in active development, so expect some bugs, and don't forget to message me over it. If you want to support me on my chess journey (yes, I still plan on using my own chess tool to improve my rating), my username on lichess is ChessRat_io. I'll be starting my own blog there for all of the other interesting findings I've made (it's all about the chess).


r/ComputerChess • • Jun 13 '25

I put Chatgpt against DeepSeek just to see skill diff

0 Upvotes

Was the worst game I've ever seen however chatgpt was surprisingly better than DeepSeek at chess like miles better. It just shows how much better we have made chatgpt get just by asking it to play games while deepseek who is a newer model is struggling to keep up and at the end just gave up with server is busy message. https://youtu.be/WBTxMLJTgro?si=Y8fwNGr-LD9BgY4U


r/ComputerChess • • Aug 31 '26

I built a data based chess analysis tool around Stockfish 18 WASM , here's what I'm doing differently

Thumbnail
gallery
2 Upvotes

The core idea: run Stockfish 18 WASM and analyze a player's entire game history, not just one game at a time.

some features out of the many are-

  • Opening trees built from the player's actual games

  • Move-by-move engine evaluations

  • Opening weakness detection

  • Recurring blunder patterns

  • Blown wins games where the player had a significant winning advantage but eventually lost

  • Missed and allowed forced mates

  • Tactical pattern statistics

  • Endgame performance

  • Material resilience

  • Castling tendencies

  • Simplification tendencies

  • Opening repertoire drift over time

  • Playing-style

  • Opponent scouting

  • Per-game Stockfish review(chess.com style)

Opening side: builds an actual opening tree from the player's games, merging transpositions via normalized FENs. Each node shows games reached, W/D/L, win rate, ECO, engine eval, and weakness signals , also an interactive graph where node size = games played and color = move quality. There's also a repertoire builder where you play against the engine while it shows master-game stats for the position, and a trap database mined from millions of high-rated games that surfaces relevant traps while you build.

What I actually care about: instead of "you blundered on move 27," I want to say "you keep reaching this type of position and your eval keeps sliding" or "you have a recurring weakness in this opening line." Inferring patterns across hundreds of games rather than analyzing games in isolation.

It's free, no account needed: https://www.auditchess.com

Would love feedback from anyone who's worked with engines, PGN databases, eval pipelines, or WASM especially what you'd want added.


r/ComputerChess • • Jul 29 '21

Can anyone explain to why my Queen gets automatically taken when I take the pawn? (Pics show the play in bottom left of them)

Thumbnail
gallery
2 Upvotes

r/ComputerChess • • Jun 24 '21

LIFETIME REPERTOIRE VS THE CARO-KANN DEFENCE!..THE ADVANCE VARIATION! PA...

Thumbnail
youtube.com
2 Upvotes

r/ComputerChess • • May 15 '26

I built a free chess study tool that turns engine analysis into guided learning

Thumbnail
chessfeed.ai
2 Upvotes

Hi r/ComputerChess,

I’m one of the people building chessfeed.ai. We released a new Study feature today and I’d love feedback from people interested in chess analysis tools and engine-assisted study.

The idea is to make game review more useful as a learning experience.

Engines are great at showing the best move or PV, but when I review my own games, I often want more guidance around the position itself:

What was the plan?

What threat did I miss?

What candidate moves should I have considered?

Why did one continuation work better than another?

With chessfeed.ai Study, you can start from a game, FEN, opening, puzzle, endgame, or any position. The Study view gives guided signals around plans, threats, candidate moves, mistakes, and opening ideas. You can also branch into alternatives, compare continuations, ask for explanations when the engine line alone is not enough, and have your study path saved automatically, synced across devices, and shareable with others.

It is free during early access and does not require a credit card.

Link: https://chessfeed.ai

I’d love feedback from this community on the analysis workflow, especially whether guided learning around engine-backed analysis feels useful, and what details you would expect from a serious study tool.


r/ComputerChess • • Nov 11 '22

🔥Early Christmas Sale Incredible electronic chessboard

Post image
0 Upvotes

r/ComputerChess • • Jul 21 '26

I kept a promise to a friend and built an app for a chess variant with hidden 39-point custom armies — would love your feedback

0 Upvotes

Hi everyone!

A few years ago a friend of mine, a computer science teacher, shared his idea for a chess variant with me, and I promised him I'd bring it to life one day.

Back then I was too intimidated to even look at the source code of open-source chess engines. But eventually I kept my promise and built a mobile app for iOS and Android.

The variant works like this: instead of the standard army, each player builds a custom one within a 39-point budget — exactly the value of the classic army (using the traditional piece values) — mixing classic pieces with hybrids: the Maharajah (queen + knight), Archbishop (bishop + knight), and Chancellor (rook + knight). In multiplayer, each side sets up their army hidden from the opponent; both armies are revealed only when the match starts, so the opening is a surprise every time. You can even pit a classic army against a custom one.

Tech-wise, it's a Flutter app with a custom chess engine written in C (integrated via Dart FFI), plus an ASP.NET backend with SignalR for online play. It runs on iOS, Android, Windows, macOS, and Linux. The engine's source code is open — you can find it linked on the project page, in case anyone wants to see how the variant rules and hybrid pieces are implemented.

I'm a programmer, but not a strong chess player, so it's hard for me to judge whether this idea is genuinely interesting to the chess community.

I'd really love to hear your thoughts. If you feel like checking out the project or playing a few games, I'd be grateful for any feedback — positive or critical.

https://maharajah.one

Thanks for your time!


r/ComputerChess • • 20d ago

Chess-tactics-manager

0 Upvotes

Hello everyone,

My friend created this website which allows you to work on your weaknesses and have a personalized training program.

How does it work?

- Import your games from Lichess or Chess.com.

- Analyze your games with Stockfish to identify missed tactical opportunities.

- Turn your mistakes into exercises to replay positions and learn to recognize good opportunities.

- Identify your tactical weaknesses using the classification of different patterns.

- Track your progress with statistics dedicated to your training.

Feel free to provide feedback or criticism.

Thank you all.

https://chess-tactics-manager.fr/


r/ComputerChess • • Sep 16 '26

I built a small website to help track the Chess Olympiad in Samarkand

1 Upvotes

I'm not the biggest fan of chess-results to keep an eye on Olympiad results, standings, statistics, et. While I recognize that it holds a *ton* of information, it's just not really the place for me.

As a hobby project, I decided to try and build a small website that shows information in a way that's more suitable to me, and am pretty happy with the results! I mostly built it for myself, but in case others find it useful, I wanted to share it here.

https://olympiad.reppie.org

Some details:

  • Data is pulled from Lichess, so boards wont be populated until they are available on lichess

  • Things don't update realtime, the sync runs every ~10 minutes

  • It's currently still quite empty, since the tournament only just started!

NOTE: It's a very busy week at work for me, so I rushed some things and won't have time to fix anything broken very quickly :D


r/ComputerChess • • May 14 '26

I built an AI chess coach powered by Stockfish that automatically analyzes my Lichess games inside Discord

0 Upvotes

r/ComputerChess • • Oct 21 '26

Training chess web for improving important skills.

1 Upvotes

Hi!!

I’ve been working on a web tool aimed at players who want a clean environment to study classical games and work on their calculation/visualization: https://www.classicalchesslab.com/en

Instead of dumping thousands of unannotated PGNs, I’m curating and annotating classic games one by one on an interactive board with Stockfish integration so you can explore sidelines right away.

What’s live right now:

  • 7 foundational classics (from Morphy and Capablanca to Kasparov–Topalov 1999) — expanding steadily.

  • Visualization exercises specifically built to improve board vision and calculation without moving pieces.

  • Theoretical Endgames (In development): A dedicated section I'm currently building out to master essential endgame positions, annotated with practical advice and principles to help you truly learn how to play them, not just memorize a position.

I want to make the visualization exercises and the upcoming endgame module as genuinely useful for tournament prep as possible. If you have two minutes to try the visualization trainer or click through one of the games, what would you change or add to make this part of your training routine?


r/ComputerChess • • 22d ago

Stockfish 19 vs alpha zero

0 Upvotes

What do you think who would win between stockfish 19 and alpha zero


r/ComputerChess • • Aug 21 '26

I built a cyberpunk Lichess client that makes you feel like an ancient master of chess.

Thumbnail
reddit.com
1 Upvotes

r/ComputerChess • • May 29 '26

The Marvelous Brass Chessplaying Automaton: Public Beta

1 Upvotes

I just published the first public TestFlight beta of The Marvelous Brass Chessplaying Automaton.

This is essentially the app I always wanted, but couldn't find on the App Store: A chess database, chess playing and opening repertoire management and training app, built using modern Apple-native tech. The primary platforms at the moment are the iPhone and the Apple Watch. It runs mostly OK on the iPad as well, but the user interface isn't yet very well optimized for the platform. Versions for macOS and visionOS are planned in the future.

Features:

  • Offline (on device) database features.

  • Play against computer at adjustable strength.

  • Remote engine support (install a companion app on your desktop computer at home, scan a QR code, and you can access the engine running on your computer from your phone over the Internet).

  • Opening repertoire management with spaced repetition training, PGN import and export, etc. Repertoires are synced across your devices with iCloud.

  • Opening simulator, where you can try out your openings against simulated Lichess opponents and see rating graphs and stats for each of your openings.

  • PGN viewing or editing.

  • Support for importing and reading courses in PGN format. I use this with courses from https://modern-chess.com, but Lichess studies should also work.

  • Support for Chessnut e-boards for online (Lichess) and local play.

  • Much more.

At the moment, this is primarily a tool for serious chess players and opening nerds. I hope to extend it with more features in the future.

Oh, and by the way, for those who wonder: The name is taken from a short story by the American science fiction writer Gene Wolfe.


r/ComputerChess • • Jul 06 '21

All About MusicWithChess (YouTube Intro Video) MusicWithChess is a channel focused on musicians, music lovers, and chess players.

Thumbnail
youtu.be
0 Upvotes

r/ComputerChess • • Jun 09 '22

What is the missing feature in an evaluation function?

0 Upvotes

In parts, an evaluation function for a chess engine is given. It contains of material and mobility. But a third element is missing so the equation is known as:

white_wins = material + mobility + X

Question: What is a possible guess for X?


r/ComputerChess • • Sep 17 '19

Forced Win

1 Upvotes

are there engines/configurations/research for forcing an opponent to win the game?

i’m not interested in picking the worst move, but the best move to lose. given the game, are these kind of strategies even that possible?


r/ComputerChess • • Mar 29 '19

ChessCraft launch trailer! Change how pieces moves, change the board, then play my AI. Full version is free to play.

Thumbnail
youtube.com
1 Upvotes

r/ComputerChess • • Sep 30 '23

Need c++ spoonfeed for chess engine

1 Upvotes

I have created an alphazero inspired chess engine in python using a mix of pytorch, python-chess, and an implementation of MCTS with some custom heuristics built in. It's incredibly slow because the MCTS is done in python and also in it's current state it's not a UCI engine so I can't compete in TCEC or CCC or use it in any of the guis like Arena. I would really appreciate if someone proficient in c++ could contact me and help me convert it into a c++ implementation as I barely know c++ or if someone can point me to a source that I can paste from that would also be much appreciated.


r/ComputerChess • • Oct 29 '26

I built a new Next Chess Move Website

0 Upvotes

I kept using nextchessmove.com and wanted something cleaner, faster on a phone, and with no adverts, so I built jam1e.org.

What it does:

Set up any position (play moves, paste a FEN or PGN, or place pieces) and get the best move with an arrow and the top 3 lines
Play the computer at 10 levels

Review a game: paste a PGN or import from Lichess or Chess (dot) com by username, get accuracy, a graph and your blunders

Scan a screenshot of a 2D board and turn it into a position (beta)

The engine is Stockfish 18 compiled to WebAssembly, so nothing is uploaded and there's no account. Feedback very welcome, especially on the scanner.

It also has lots of information and guides for beginners.

Would love for any chess enthusiasts to give it a whirl :)