How Intelligent is the AI?

All about getting the AI less baka...
Locked
flad_nag
Posts: 248
Joined: Mon Aug 31, 2009 7:56 am

How Intelligent is the AI?

Post by flad_nag »

If a card have multiple abilities, the AI will choose the 1st ability available for play right?

Example, a card has 4 abilities in this order:
-ability1
-ability2
-ability3
-ability4

If all abilities can be played w/ the current available mana, AI will choose ability1 right?

If ability2 and ability4 can only be played w/ the current available mana, AI will choose ability2 right?

How about abilities that need a card to be sacrifice, can that be played by an AI? Example below:
Tap, 2GG, sacrifice an elf:5 damage to target creature
wololo
Site Admin
Posts: 3728
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: How Intelligent is the AI?

Post by wololo »

flad_nag wrote:If a card have multiple abilities, the AI will choose the 1st ability available for play right?

Example, a card has 4 abilities in this order:
-ability1
-ability2
-ability3
-ability4

If all abilities can be played w/ the current available mana, AI will choose ability1 right?
No. That rule is true only for mana abilities. Otherwise, the AI will use any ability depending on what it does + a pinch of randomness.

How about abilities that need a card to be sacrifice, can that be played by an AI?
No, unless the card to sacrifice is the card that has the ability.
See:
http://code.google.com/p/wagic/source/b ... er.cpp#132

All the (crappy) code for the AI is in this file by the way. It's pretty dirty and hard to read, but could give you some insight about what the AI can and can't do :)
Locked