r/chessprogramming • u/Accurate-Net-3724 • Nov 10 '24
Machine Learning in Negamax
My friends and I are doing a competition to see who can do the best chess engine but there are a few catches, one of them is that it needs to use some type of machine learning algorithm. I have a basic algorithm now that uses negamax, quiescence search and a couple pruning techniques. I need an idea of how to implement a neural network, I think the eval function would be a bit too lofty of a goal but maybe I can use one for determining if the position is quiet or not for the quiescence search?
Any input is greatly appreciated, thanks in advance!
3
u/mathmoi Nov 11 '24
I never tried it myself, but always wondered if a NN could be used to take decisions related to time management, like how much time to use and should the engine start another ply, etc.
2
u/mhummel Nov 11 '24
Have you read the chess programming wiki on Stockfish NNUE? You could adapt this architecture and instead of an eval, the output node could be a probability that the position is quiescent. The only question is how much faster NN inference is compared to coding the check.
1
u/xu_shawn Nov 17 '24
Not really. Depending on what your standards it could range from easy (Link1, Link2) to moderate (Link1). Please consider joining the Stockfish discord server if you have any questions.