It is currently 22 Aug 2025, 22:47
   
Text Size

AI attacking and blocking Observations

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

Re: AI attacking and blocking Observations

Postby friarsol » 02 Nov 2011, 12:15

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?
Double Blocked what?
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

Postby 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
Nordos
 
Posts: 558
Joined: 23 May 2011, 14:06
Has thanked: 6 times
Been thanked: 18 times

Re: AI attacking and blocking Observations

Postby ZzzzSleep » 04 Nov 2011, 12:35

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
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.
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: AI attacking and blocking Observations

Postby 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.
Nordos
 
Posts: 558
Joined: 23 May 2011, 14:06
Has thanked: 6 times
Been thanked: 18 times

Re: AI attacking and blocking Observations

Postby 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

Postby 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 #-o
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: AI attacking and blocking Observations

Postby Sloth » 08 Nov 2011, 15:38

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));
        }
Thanks for your fix Sol. Of course you were right.

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 #-o
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.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: AI attacking and blocking Observations

Postby 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.
arkart
 
Posts: 12
Joined: 31 Aug 2011, 04:25
Has thanked: 6 times
Been thanked: 1 time

Re: AI attacking and blocking Observations

Postby 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.
Diena
 
Posts: 59
Joined: 05 Nov 2011, 16:08
Has thanked: 2 times
Been thanked: 6 times

Re: AI attacking and blocking Observations

Postby 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?
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: AI attacking and blocking Observations

Postby Sloth » 18 Nov 2011, 16:37

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.
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.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: AI attacking and blocking Observations

Postby 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
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: AI attacking and blocking Observations

Postby 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 :lol:
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: AI attacking and blocking Observations

Postby Milod » 30 Nov 2011, 23:16

elspeth tirel doesent use any of her abilitys if there is no creatures on her side
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: AI attacking and blocking Observations

Postby 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.
Diena
 
Posts: 59
Joined: 05 Nov 2011, 16:08
Has thanked: 2 times
Been thanked: 6 times

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 40 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 40 users online :: 0 registered, 0 hidden and 40 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 40 guests

Login Form