Skip to content
Snippets Groups Projects
Commit 4f01c1e3 authored by deuce's avatar deuce
Browse files

Make Deep Blue fall back to paranoid unless he has his fair share of territories.

parent 69dc3e04
No related branches found
No related tags found
No related merge requests found
......@@ -143,8 +143,13 @@ function UltraParanoidAICheck(gameNumber, playerNumber, base, target)
g=games.gameData[gameNumber];
computerPlayer=g.players[playerNumber];
/* If we don't have our "fair share" of territories, use paranoid attack */
if(computerPlayer.territories <= g.playerTerr) {
return(ParanoidAICheck(gameNumber, playerNumber, base, target));
}
/* If reserves + expected new dice - used reserves is still greater than seven, use the merely paranoid attack */
if(computerPlayer.reserve + computerPlayer.territories - (computerPlayer.AI.moves*7) > 7) {
if(computerPlayer.reserve + computerPlayer.territories - (computerPlayer.AI.moves*8) > 7) {
return(ParanoidAICheck(gameNumber, playerNumber, base, target));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment