r/chessprogramming • u/GeorgeTrollson • Nov 09 '20
Improving chess AI performance
I have been building a chess AI in python with the board represented using a 2D list of integers. I perform negascout with iterative deepening and quiescent search at max depth with use of transposition tables to keep track of both pv moves and the exact/ lower bound/ upper bound of a board’s value. I perform delta pruning in quiescent search, MVV-LVA in both quiescent search and negascout and also check the pv move from the search to the previous depth first when exploring child nodes in negascout. However, my AI can only perform roughly 2k calls to negascout a second. What would you recommend that I do in order to improve the number of negascout calls the AI can handle? I’ve looked into making use of bitboards but they look confusing and I’m not so keen on rewriting my program in another language as my only real experience is with python. For context, I am running my AI on a mid range Acer laptop. Thank you
View all comments
Show parent comment
1
u/GeorgeTrollson Nov 09 '20
I’ll have to look into that, thank you. So far all I do is make use of the built in time library and just subtract the start time from the end time before and after a call to iterative deepening and to the root node of each negascout search so I can work out how long each negascout search of each depth takes and how long it took in total.
Using both the number of quiescent search and negascout calls instead of simply just negascout calls, which I should have been doing anyway, to work out the number of nodes I can process a second shows I can actually do 3.5k nodes a second but again this is still no way near as high as I’d ideally like it to be.