I want to code an AI
for the Warlight Game
. I read about the MiniMax algorithm
for the TicTacToe game but I suppose this situation is different.
For the TicTacToe game we have states in the nodes. But I can't imagine how to store a state of the Warlight game in a node. I have precomputed probability values which is created by using the theory here. https://stats.stackexchange.com/questions/91814/probability-enemy-territory-captured-in-x-turns
Could you help me to understand what the most reasonable way to use MiniMax search in Warlight AI game is?
Notes: I'm using Java codebase but it is different than the actual Warlight AI competition. This is not for competition.
This is not complete but here is an example usage of precomputed probabilities just to give an idea;
aRes = FightAttackersResults.loadFromFile(new File("FightSimulation-Attackers-A200-D200.obj"));
dRes = FightDefendersResults.loadFromFile(new File("FightSimulation-Defenders-A200-D200.obj"));
for (int a = defenders; a <= attackers; ++a) {
double chance = aRes.getAttackersWinChance(a, defenders);
if (chance >= winProbability) {
return a;
}
}