easyAI
easyAI copied to clipboard
unmake_move for Awele
I suspect it's impossible to write unmake_move function for Awele, isn't it?
It should be possible. The game class might need the history (list) of seeds collected for each ply so that you have the needed context of previous moves. (aka self.seeds_taken
)
I'm not entirely sure if that would speed up the game in Oware (Awele). You would want to run performance tests.
I wrote a similar game for Kalah version of Mancala, and I found deriving short-view "tactical" scoring for judging a turn helped make the AI much smarter at the same depth. For Oware, there is a book by David Chamberlin called "How to Play Warri" that dives into the details of short term play.
(disclaimer: I'm coincidentally involved with David's book as the publisher.)
I wrote a similar game for Kalah version of Mancala, and I found deriving short-view "tactical" scoring for judging a turn helped make the AI much smarter at the same depth. For Oware, there is a book by David Chamberlin called "How to Play Warri" that dives into the details of short term play.
(disclaimer: I'm coincidentally involved with David's book as the publisher.)
John, I saw your project of Mancala, and it looks great. I highly recommend you to look at togyz kumalak/toguz korgool game as well.