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.
minimax help
minimax help
|
Jan-24-2024, 10:23 PM
(This post was last modified: Jan-24-2024, 10:23 PM by deanhystad.)
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.
|
|
Users browsing this thread: 1 Guest(s)