Page 1 of 1

Where in the code is AI's blocking/targetting logic?

PostPosted: 21 Mar 2012, 09:50
by mark
I would like to take a look at it (see viewtopic.php?f=26&t=3681&p=85580#p85577)

Re: Where in the code is AI's blocking/targetting logic?

PostPosted: 21 Mar 2012, 10:20
by Chris H.
mark wrote:I would like to take a look at it (see viewtopic.php?f=26&t=3681&p=85580#p85577)
`
The AI code tends to be spread among a number of different java classes. Sloth and a few other people have more experience in this are than myself.

These two classes look like a good place to start for AI attacking and blocking code:

src.main.java.forge.ComputerUtilAttack.java
src.main.java.forge.ComputerUtilBlock.java