It is currently 16 Apr 2024, 16:21
   
Text Size

Requests for AI improvements

Report wrong Card behavior to get it fixed.
PLEASE ADD SAVEGAMES TO YOUR TOPIC !

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

Re: Requests for AI improvements

Postby Aswan jaguar » 24 Apr 2017, 12:37

Flatten, Grasp of Darkness and others that share code with them are not used very good by AI.If I am not wrong AI is set to only cast them targeting 4 toughness creatures or creatures that need 4 damage to die.So in my tests:
- AI doesn't cast the card even to save itself from death by unblocked attacker if it doesn't have 4 toughness. or
- to take advantage by killing humans 3/3 creature that holds back AI's 3/3 creatures, or
- to deal with a creature with trample like Ball lightning or
- and possibly not deal with an indestructible creature of toughness less than 4.(this not tested) etc.
Attachments
2017-04-24_151230.jpg
AI not casting Flatten to unblocked creature and dies.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: Requests for AI improvements

Postby counterspell15 » 05 Jul 2017, 12:27

Have you ever played against the AI and AI was using Fact of Fiction? I noticed that AI doesn't make good decisions when taking cards to the hand. I tried to do the following: choose a pile of lands and other pile. The AI takes the lands to its hand and drop the rest to the graveyard #-o
counterspell15
 
Posts: 47
Joined: 14 Jun 2015, 11:14
Has thanked: 9 times
Been thanked: 22 times

Re: Requests for AI improvements

Postby FastEddie » 22 May 2020, 15:31

Some general observations, not so much about specific cards.

The AI often plays (correctly imo) cards before attacking that support the attack like Muscle Sliver or Sinew Sliver in a Sliver deck. However, a Bonesplitter Sliver is usually played after attacking. Same for a second Cranial Plating in an Affinity deck. Imo these cards should be played before attacking.

Generelly the AI seems to plan only one step ahead. For example, I play Eureka, AI plays Phantasmal Forces without having blue mana. The Phantasmal Forces die during the next upkeep. Similar (at least in the old Shandalar, but I presume the same holds for Manalink) the AI plays Stasis without having a blue mana left.
My impression is that it uses a tree with only one level, weights the leaves and chooses the best one. It would be cool if the same algorithm could be run based on the outcome of either each leaf or at least certain leaves, based on some pruning strategy if the former is too computationally intensive.

Similar but maybe not quite the same: the AI does not attack when it needs two turns to win or would loose creatures on the way. Say the AI has enough creatures to deal enough damage to win over two turns, even if I block perfectly during both turns and it looses some creatures during the first turn. Ignore hand cards on my side that might change the outcome like Giant Growth, Fireball or Wheel of Fortune for a hail mary pass. I think a human player would employ that strategy at least once in a while.
---
Argivian Archaeologist in the Library of Leng studying the Spells of the Ancients
User avatar
FastEddie
 
Posts: 246
Joined: 24 Dec 2019, 10:59
Has thanked: 15 times
Been thanked: 19 times

Re: Requests for AI improvements

Postby Aswan jaguar » 23 May 2020, 18:12

FastEddie wrote:The AI often plays (correctly imo) cards before attacking that support the attack like Muscle Sliver or Sinew Sliver in a Sliver deck. However, a Bonesplitter Sliver is usually played after attacking. Same for a second Cranial Plating in an Affinity deck. Imo these cards should be played before attacking.
The "Lord" type of cards that boost others are set to be played for AI in both main phases as AI most of the times plays them well in first main and few times if AI will not attack in 2nd. If we make AI to play them only in 1st main then we get another issue that to my experience is more often than AI make a bad use of "Lords" and not cast them before combat although AI did attack or would attack if it cast them before.
When AI draws cards in combat or 2nd main can't cast the drawn "lords" the turn AI got them so loses a turn and wastes mana.
For Cranial Plating and most equipment AI is set to play them only in 1st main but activate them anytime so AI can equip attack and then reequip a creature that didn't attack and defend with it, AI uses that correctly sometimes.
FastEddie wrote:Generally the AI seems to plan only one step ahead.
Unfortunately AI can see only until end of it's current turn so we should give hints to AI for these cards to cast them only if AI has such mana available.
FastEddie wrote:Similar but maybe not quite the same: the AI does not attack when it needs two turns to win or would loose creatures on the way.
That is happening in the vast, vast majority of AI attacks however I have seen AI to attack and win in two turns even if AI would loose creatures. Either AI has some algorithm which we don't know about that will make it attack even in two turns to win and loose creatures doing so or it is possible in these few times that AI does something like that to think through bad code or functions we don't understand well that can win that turn. Still some of those times AI didn't have anything so complicated to mess it's calculations.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: Requests for AI improvements

Postby FastEddie » 16 Nov 2020, 14:47

The AI is too trigger happy with Strip Mine (probably also Wasteland) and Zuran Orb. What I mean is that it immediately sacs either Strip Mine or arbitrary lands to Zuran Orb, thereby depleting its mana base.

For Strip Mine (and other "Destroy-target-land" lands) it would make sense for the AI to wait until it has enough mana, either lands or other sources. "Enough" could be the average CMC across all cards in the deck or maybe even one mana more, either in play or on the hand (it could make sense to sac Strip Mine on turn one if you have four more lands in hand, for example). Once the mana base is established it could sac the Strip Mine without undue damage to itself.

Zuran Orb is used immediately now, i.e. every new land is sacced, thereby the AI never has enough mana. Instead it should sac lands only when its life falls below 1 during a phase and then sac only enough lands to get back to 1 or 2 at most.
---
Argivian Archaeologist in the Library of Leng studying the Spells of the Ancients
User avatar
FastEddie
 
Posts: 246
Joined: 24 Dec 2019, 10:59
Has thanked: 15 times
Been thanked: 19 times

Re: Requests for AI improvements

Postby Dav3377 » 26 Mar 2021, 00:34

The AI will block a 2/1 Dwarven Soldier with a 2/2 Orcish Veteran with First Strike activated. It does not appear to consider that doing so gives the Dwarven Soldier +0/+2 (making it a 2/3). It will also attack with the 2/2 orc when a Dwarven Solider can block it, become a 2/3, kill it, and survive. Typically the AI does not seem to sacrifice 2/2s to 2/3s in this way.
Dav3377
 
Posts: 5
Joined: 25 Mar 2021, 12:44
Has thanked: 1 time
Been thanked: 0 time

Re: Requests for AI improvements

Postby etphonehome » 22 Jul 2021, 17:59

AI never leaves a creature to defend against critical damage.

I've seen this a lot of times.

AI always atacks if there are no creatures to block and next turn your creatures get untapped and make critical damage and you win the game.


step 1.jpg


step 2.jpg


step 3.jpg


THX
etphonehome
 
Posts: 300
Joined: 21 May 2020, 12:50
Has thanked: 270 times
Been thanked: 39 times

Re: Requests for AI improvements

Postby woghomm » 21 Sep 2021, 12:24

1. Gatekeeper of Malakir
AI always choose it to cast on second and third turns without kicker payment, afterfore have problems with creatures coming on table. Of course, most players will wait it for cast for BBB cost.

2. Boros Reckoner
AI not feel it ability so oftenly it cause to blocking it with a creature or do many damage to him, that will cause to losing a game.
Or AI just do damage bolts on him, that will cause a problem too.
Attachments
2021-09-21_15-16-24.png
Boros Reckoner
2021-09-21_15-14-09.png
Gatekeeper of Malakir
woghomm
 
Posts: 3
Joined: 21 Sep 2021, 08:00
Has thanked: 0 time
Been thanked: 0 time

Re: AI weird target display

Postby Blyfycyfyfyf » 13 Nov 2021, 08:47

Hi, common situation - Pillory of the Sleepless on AI's creature, yet AI still pumps the 'pacified' creature with various effects, even though this creature cannot attack. And it happens mostly in first main phase.

Is this something that actually can be changed? The target is of course legal, but makes no sense.
Blyfycyfyfyf
 
Posts: 36
Joined: 12 Nov 2021, 12:10
Has thanked: 0 time
Been thanked: 0 time

Re: Requests for AI improvements

Postby Konatsu » 15 Feb 2022, 07:48

This may be a known issue, but I'm attaching the save data.
Land that becomes a creature will upset the AI's judgment.
In particular, when paying for echoes, the AI doesn't do that and pours all its mana into those lands.
Attachments
###tmp.jpg
20220215_01.zip
(3.75 KiB) Downloaded 162 times
Konatsu
 
Posts: 92
Joined: 14 Feb 2022, 18:39
Has thanked: 0 time
Been thanked: 1 time

Re: Requests for AI improvements

Postby Konatsu » 09 Jun 2022, 08:48

AI does not appear to be able to use Odessey's "filter land".
(e.g. Skycloud Expanse)
I would be happy if you could fix this.

-I have seen AI using Azorius Signet etc. successfully.
Attachments
###tmp.jpg
Konatsu
 
Posts: 92
Joined: 14 Feb 2022, 18:39
Has thanked: 0 time
Been thanked: 1 time

Re: Requests for AI improvements

Postby Aswan jaguar » 09 Jun 2022, 11:51

I have already fixed AI with Odyssey lands and other lands or mana producers for AI, check here.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: Requests for AI improvements

Postby Konatsu » 08 Nov 2022, 19:58

Faith's Fetters has a big problem.

The AI attaches it to its own creatures when my creatures are present.

When this happens, the AI then goes violently crazy.
All or some of the following behaviors occur.
-AI makes a disadvantageous attack and self-destructs the creature.
-AI can block without loss, but does not do so and sandbags.
-AI stops casting spells.
Attachments
Faith's Fetters.zip
(711.6 KiB) Downloaded 103 times
Konatsu
 
Posts: 92
Joined: 14 Feb 2022, 18:39
Has thanked: 0 time
Been thanked: 1 time

Re: Requests for AI improvements

Postby drool66 » 08 Nov 2022, 23:04

After allowing EVENT_SHOULD_AI_PLAY through in IS_AURA_EVENT(), AI no loner plays Faith's Fetters on its own permanents in any way I could ascertain.

EDIT: Commmitted in 8257bd5
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times

fixed

Postby Konatsu » 14 Nov 2022, 14:21

The AI tries to attach Cartouche of Strength to my creature, fails, and it is placed in the graveyard.
Last edited by Aswan jaguar on 18 Dec 2022, 12:12, edited 1 time in total.
Reason: fixed
Konatsu
 
Posts: 92
Joined: 14 Feb 2022, 18:39
Has thanked: 0 time
Been thanked: 1 time

PreviousNext

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 33 guests


Who is online

In total there are 33 users online :: 0 registered, 0 hidden and 33 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 33 guests

Login Form