My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
CannonsAI  
Plans for AI in Cannons
Phase-Implementation
Updated May 8, 2007 by pindi.al...@gmail.com

Store AI

Spending

1 in 3 - Spend all money

1 in 3 - Spend half of money

1 in 3 - Spend a quarter of money

Buying Strategies

At the start of the game, you can assign a strategy to the AI. The strategy chosen will have a larger chance of being chosen than the other strategies.

The computer will randomly choose a strategy and allocate a portion of money to it as per the guidelines above.

Depending on the amount of money available, different types of bombs will be bought. Also, the AI will never buy a missile if it has ten or more of that missile already.

For each strategy, there will be a "ranking" of bombs. If the highest ranking bomb is possible to be bought, one will be bought, then two of the next highest ranking will be bought if possible, then two of each of the rest of bombs in the category. It there is leftover money, the AI will repeat this process until all available money is used up.

Staple

The AI will maintain the following bombs at all times:

3x Volcano Bomb

3x Firework Bomb

2x Repair Kit

Utility

3/20

For the "Utiliy option," the AI will buy repair kits until it has five repair kits, and it will sustain one large shield and one thick armor plate.

Conventional

3 in 20 chance this strategy will be chosen

Fusion Bomb, Atom Bomb, Large Missile

Cluster Bombs

2 in 6 chance this strategy will be chosen

Atomic Cluster Bomb, Firework Cluster Bomb, Large Cluster Bomb, Cluster Bomb

Air Strike Strategy

2 in 6 chance this strategy will be chosen

The AI will randomly pick airstrikes to buy until it doesn't have enough money left.

Other Missiles

WMD Strategy

This strategy is not chosen, but is executed if the computer has enough money

Ultra Firework Bomb/Viral Bomb/Black Hole/etc - Will

buy one if enough money

Firing Strategy

These conditions are checked in this order:

  1. If a utility is needed (shield, repair kit), it will be used
  2. If a WMD is usable, it will be used
  3. If a direct line of fire is available, it will be fired on with a conventional or cluster bomb
  4. If an air strike is usable, it will be used.
  5. If nothing above is available, the computer will attempt to calculate a non-direct line of fire and use it

Sign in to add a comment
Powered by Google Project Hosting