Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minimax algorithm
#2
If you let the minimax do an exhaustive search (no depth limit, test all possible moves) it will win or draw every time. You cannot get stronger than that.

I don't see any problem with the posted code (other than the indent). This does nothing:
board.depth = min(board.depth, depth)
Maybe you are using it wrong.
Reply


Messages In This Thread
Minimax algorithm - by freethrownucleus - May-24-2023, 05:12 PM
RE: Minimax algorithm - by deanhystad - May-24-2023, 08:16 PM
RE: Minimax algorithm - by freethrownucleus - May-29-2023, 06:56 PM
RE: Minimax algorithm - by deanhystad - Jun-01-2023, 07:04 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020