r/ComputerChess • u/warlock7867 • Jun 14 '26
Help with calculating elo for my engine
hey guys! i have been working on my first chess engine in go for a couple of months now. i finally have a working engine that is uci compatible. i made it play against stockfish and it got absolutely obliterated, which i expected. i want to work on improving it now. i used cutechess to let it play about 15 games against stockfish and i got a high variance elo for it. i understand that i need to let it play a lot more games for a lot longer. but my laptop cannot handle that kind of compute. what's a good place to run these tournaments so i can get reliable elo for my engine? i really want to get this part down before i go about improving it so i have a benchmark to compare my changes to. thanks in advance!
edit: grammar
4
u/IanRastall Jun 14 '26
Okay. I haven't done this in a while, so I'm rusty. But first off, you need a *minimum* of 100 games. More like 1000. If you run a CuteChess tournament to the end you get the stats. I guess in the GUI you can see that stats repot any time. If the error margin is plus or minus anything more than a single digit, keep going. It really should be close to 2.
First off, to get good stats, every engine in the tournament must be able to beat every other engine, and not just once. That's why testing sites have tiers. Stockfish will oblierate anything not top-tier, so those stats are just all losses. You need enough wins for any matchup to get the math moving. So if you're testing something mid at best, put it up against something the CCRL reports as having a 3000 elo, or 3200. Not a 3800 elo.
You would do a round robin, 100 games per round, 10 rounds, and a decent time control, but not one that takes forever, so likely 1m + 1s. Then add in a 50ms buffer. The resign and draw functionality should be disabled, to improve your stats and especially your PGN database -- which likes finished games. Ponder should be OFF. Very important. The, uh, buffer or whatever it's called, that should be 256 MB. You should use 1 thread, to make the stats work better, even though 2 or more would give a better result. I would advise against an opening book, but advise an opening suite, which would be a PGN. There are good ones out there, but I make my own. I get a PGN gong of all the openings as listed over at the Lichess opening names repo at GitHub. You can get a PGN for each of the openings, and those moves will automatically play out. You play the one for both sides, then randomize to anther one.
1
u/Zulban Jun 14 '26
If you spend $1 on the cloud you could probably run hundreds of games.
2
u/haddock420 Jun 14 '26
You can run cutechess matches (look up cutechess-cli for running automated matches) against low-rated CCRL engines to get an idea of its rating. 500+ games will give you a decent idea of its strength. Each game takes 2 threads so how many games you can run at one time will depend on how many threads your CPU has.
1
u/gamesntech Jun 15 '26
Like others have mentioned you have to run a lot more games. There is usually a way to limit stockfish to specific Elo level so you can start quite low and test from there.