Skip to content
Snippets Groups Projects
Commit 04c35c3c authored by deuce's avatar deuce
Browse files

Backout randomization... need to overhaul bases/targets usage.

parent ba938346
No related branches found
No related tags found
No related merge requests found
......@@ -1057,7 +1057,7 @@ function TakeTurnAI(gameNumber,playerNumber)
if(targets.length==0) return false;
if(targets.length==1 || targets.length==2) attackQuantity=targets.length;
else attackQuantity=random(targets.length-2)+2;
targets.sort(RandomSort);
//targets.sort(RandomSort);
for(attackNum=0;attackNum<attackQuantity;attackNum++)
{
GameLog("computer " + (playerNumber+1) + " attacking: " + targets[attackNum] + " from: " + bases[attackNum]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment