Python Forum

Full Version: minimax help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need help with the issue that the code is returning 1s for all the moves instead of 1s and 0s and -1s for the best or the worst moves. Also it is marking suboptimal moves.
Just post your minmax code. Sounds like you are not really alternating between X and O. There are many ways to mess up the algorithm and they are difficult to spot if you don't really understand what the algorithm does.