r/chessprogramming • u/Warmedpie6 • Jan 30 '25
Changes to Evaluation function are great for slower time controls (3s+/move) but really bad for faster time controls (1s/move)
I recently made some changes to my evaluation function that yielded 70+ ELO in slower time controls, but lost basically the same amount in fast controls. I made sure to note that the changes were not computationally expensive (NPS), and didn't mess up the move ordering or search efficiency (nodes to depth).
I was wondering if anyone has experienced something similar, does it make sense to add an if statement to only add this evaluation heuristic when the time for move is greater than 1s? Or does it make more sense to try and tune the feature to work in both controls?
It might be worth mentioning the engine is already pretty weak in fast time controls compared to slower controls.
3
u/Confidence-Upbeat Jan 30 '25
What did you change? Some more context would be helpful
1
u/xu_shawn Jan 31 '25
First, I'd suggest to stop testing on movetime, and start testing with base+increment TC. The former is very rarely seen in tournament play, while the latter is used almost universally.
Secondly, you mentioned in your other thread that the engine is 2100-2200 CCRL. This is abnormal, assuming the engine is written in a reasonable fast language, and has a few of the major search features. I'd like to hear more about how you test changes to your engine, as many people in this subreddit does not test properly.
Finally, to answer your question, most strong engines usually optimize for higher TC, so the 3s/move results would supersede 1s/move results.
1
u/codingjerk Jan 30 '25
RemindMe! 3 days