minimax help - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: minimax help (/thread-41487.html) |
minimax help - NirmalJ - Jan-24-2024 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. RE: minimax help - deanhystad - Jan-24-2024 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. |