I have seen many board game AIs that is using negamax instead of minimax, especially in chess engines. Is one of them better? Is there any performace difference? If not, why do many prefer the negamax variant?
Asked
Active
Viewed 18 times
0
-
No there is no difference in performance, it is the exactly same algorithm written in a different way. The benefit is that you don't have to write lots of duplicate code which means it is easier to debug, easier to implement enhancements etc. – eligolf Feb 10 '23 at 05:39