AI attacking and blocking Observations
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: AI attacking and blocking Observations
by friarsol » 02 Nov 2011, 12:15
Double Blocked what?arkart wrote:I attacked with a Platinum Emperion and a Wurmcoil Engine with an Akroma's Memorial on my side. The computer double blocked with a Thermal Glider and a Voice of Law. Huh?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: AI attacking and blocking Observations
by Nordos » 02 Nov 2011, 13:28
I guess he means, that they both blocked one creature, though it doenst matter anyway (first strike, ...), yet he could have absorbed the damage by blocking both and not only one
Re: AI attacking and blocking Observations
by ZzzzSleep » 04 Nov 2011, 12:35
Given that both the creatures have trample, it doesn't make a difference whether the computer double blocks, or blocks both creatures, as the same amount of damage is available to trample over.Nordos wrote:I guess he means, that they both blocked one creature, though it doenst matter anyway (first strike, ...), yet he could have absorbed the damage by blocking both and not only one
Re: AI attacking and blocking Observations
by Nordos » 04 Nov 2011, 13:14
true, didnt pay attention to the artifact he had in play :S Well, I can't see any error, then. It doesnt matter how its blocking, it does only that it is blokcking.
Re: AI attacking and blocking Observations
by friarsol » 05 Nov 2011, 19:42
Sloth, in the SVN your last checkin creates an Index Out of Bounds Exception when there are more possible blockers than possible attackers in ComputerUtilAttack.java in this block: I'm not sure what you were trying to do, but this isn't quite right.
- Code: Select all
CardList remainingAttackers = new CardList(attackers.toArray());
// presumes the Human will block
for (int i = 0; i < blockers.size(); i++) {
remainingAttackers.remove(attackers.get(i));
}
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: AI attacking and blocking Observations
by Milod » 08 Nov 2011, 13:04
AI needs to make better choices on liliana veile's ultimate ability, AI had 1 creature on field and 7 lands or so and empty hand when i used liliana ultimate the ai choose to keep the only one creature(champion of the parish 1/1) he had on fied 

Re: AI attacking and blocking Observations
by Sloth » 08 Nov 2011, 15:38
Thanks for your fix Sol. Of course you were right.friarsol wrote:Sloth, in the SVN your last checkin creates an Index Out of Bounds Exception when there are more possible blockers than possible attackers in ComputerUtilAttack.java in this block: I'm not sure what you were trying to do, but this isn't quite right.
- Code: Select all
CardList remainingAttackers = new CardList(attackers.toArray());
// presumes the Human will block
for (int i = 0; i < blockers.size(); i++) {
remainingAttackers.remove(attackers.get(i));
}
Well this is difficult to optimize. I submitted a little improvement that will at least handle the situation you describe correctly. The AI is now comparing number of permanents plus total converted mana cost of each pile.Milod wrote:AI needs to make better choices on liliana veile's ultimate ability, AI had 1 creature on field and 7 lands or so and empty hand when i used liliana ultimate the ai choose to keep the only one creature(champion of the parish 1/1) he had on fied
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: AI attacking and blocking Observations
by arkart » 10 Nov 2011, 17:54
Game 1. The computer chump blocked with a sole Deranged Hermit when it had a Leyline of the Meek and seven Squirrel tokens. I think the computer reasoned that it was okay because Deranged Hermit is smaller? Echo wasn't paid yet. I think the Hermit shouldn't block unless there's no other way to live, or maybe if it's alone, or if forest number 5 just got hit by a stone rain.
Game 2. Also, a Gatherer of Graces wouldn't sacrifice an enchantment to regenerate while taking lethal damage against my first strike creature.
Game 3. A 0/1 Birds of Paradise blocks a 1/1 Safehold Elite equipped with an Adventuring Gear and I haven't played a land. Opponent is at 4 life and it has Windswept Heath, Mox Jet, Darksteel Ingot. I have Behemoth Sledge unequipped and a plains.
Game 2. Also, a Gatherer of Graces wouldn't sacrifice an enchantment to regenerate while taking lethal damage against my first strike creature.
Game 3. A 0/1 Birds of Paradise blocks a 1/1 Safehold Elite equipped with an Adventuring Gear and I haven't played a land. Opponent is at 4 life and it has Windswept Heath, Mox Jet, Darksteel Ingot. I have Behemoth Sledge unequipped and a plains.
Re: AI attacking and blocking Observations
by Diena » 16 Nov 2011, 10:43
Having a Platinium Angel on my side and life near 0 and after below 0,
the AI continues to attack each turn with all its creatures, even small ones
and looses them turn by turn.
the AI continues to attack each turn with all its creatures, even small ones
and looses them turn by turn.
Re: AI attacking and blocking Observations
by Milod » 17 Nov 2011, 06:01
AI needs to attack planeswalkers more often maybe u can make them attack the planeswalker when its close to use ultimate ability or somthing and can also explain to me why the AI isent attacking the planeswalkers more often?
Re: AI attacking and blocking Observations
by Sloth » 18 Nov 2011, 16:37
In the developer version the AI will no longer attack so recklessly if your life is below 1, but will not completely stop to attack.Diena wrote:Having a Platinium Angel on my side and life near 0 and after below 0,
the AI continues to attack each turn with all its creatures, even small ones
and looses them turn by turn.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: AI attacking and blocking Observations
by Milod » 20 Nov 2011, 09:46
give the AI more priorty to play angelic destiny because AI likes to play creature cards over this spel card he could have finished me if he used angelic destiny, had no flyers just 1 creature on field without flying
Re: AI attacking and blocking Observations
by Milod » 20 Nov 2011, 14:26
AI needs to study call to the grave, on an empty field the AI stil casts a creature spel on his turn if he dident call to the grave would have been destroyed 

Re: AI attacking and blocking Observations
by Milod » 30 Nov 2011, 23:16
elspeth tirel doesent use any of her abilitys if there is no creatures on her side
Re: AI attacking and blocking Observations
by Diena » 01 Dec 2011, 07:37
I have a Royal Assassin in play untapped an AI only one creature flying or bigger than 1/1 creature.
AI always attacks with the creature and loses it.
AI always attacks with the creature and loses it.
Who is online
Users browsing this forum: No registered users and 40 guests