It is currently 11 Sep 2025, 18:19
   
Text Size

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

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

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

Postby mark » 21 Mar 2012, 09:50

I would like to take a look at it (see viewtopic.php?f=26&t=3681&p=85580#p85577)
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

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

Postby Chris H. » 21 Mar 2012, 10:20

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
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 47 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 47 users online :: 0 registered, 0 hidden and 47 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 47 guests

Login Form