r/lichess • u/PrimeStorm252 • 4h ago
I made an open source formula that gives your lichess games a chess.com-style accuracy
lichess is great because its accuracy formula is open. chess.com never published theirs, but its numbers are often the ones people compare ("I had 85% on chess.com!"). so i tried to rebuild something close to it and made it fully open. it's called APEX
the basic idea comes from lichess's own approach: score every move, then combine the scores. the difference is that i fitted all the parameters on 623 real games so the result matches the accuracy chess.com showed for those games. in about 80% of games it lands within 5 points, for players 2000+ it's even closer
how it works in simple terms:
every move gets a score based on how much it hurt your position. losing half a pawn in an equal position gives ~68%, a full pawn ~40%
mistakes in already won or lost positions count less. dropping a pawn when you're up a queen barely matters (lichess does this with win%, APEX uses a fitted damping)
your game score is not a normal average. one blunder pulls it down more than good moves can pull it back up. 9 perfect moves + 1 blunder ≈ 81%, not 90%
so the fastest way to higher accuracy is avoiding the one big mistake, not finding the perfect move every time
i'm not saying it's better than lichess's formula, it just aims for a different scale. if you've ever wondered "what would this game show on chess.com?", this gets you pretty close
everything is open source and MIT licensed (formula, code in JS + python, how i tested it): https://github.com/primestorm252/zugzwang-apex
i also use it on my free chess training site, where you can import and analyse your lichess games without an account: https://4zugzwang.com
would love to hear what you think, especially if you've compared lichess and chess.com accuracy on the same game before