It is currently 23 Apr 2024, 12:01
   
Text Size

Why did the AI do that...?

Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins

Why did the AI do that...?

Postby Lodici » 27 Sep 2014, 18:36

Not necessarily bugs but a sticky topic to highlight what appears to be stupid AI (or human!) plays might be useful. Here is one play I do not understand - Cunning Sparkmage's ability is activated and instead of taking out the 1/1 Snake token it hits the 2/2 Wolf token instead for an impotent 1?

AI is MCTS (cheat), level 4.
Attachments
game.log
(319.24 KiB) Downloaded 294 times
screenshot.png
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Why did the AI do that...?

Postby ShawnieBoy » 27 Sep 2014, 23:51

Thought I saw what was going on, but no... No idea why :(
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Why did the AI do that...?

Postby Lodici » 28 Sep 2014, 07:49

I have added a new test scenario that will let you replicate this - see https://groups.google.com/forum/#!topic ... jnVY0Vfb88.
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Why did the AI do that...?

Postby jerichopumpkin » 01 Oct 2014, 17:05

not strictly related, but I thought this would be the est topic for it: AI is grafting nearly every creature I play. while I'm grateful for it, unless you have a specific deck, it's really an unwise action to do.
jerichopumpkin
 
Posts: 212
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Why did the AI do that...?

Postby ShawnieBoy » 08 Oct 2014, 23:04

jerichopumpkin wrote:not strictly related, but I thought this would be the est topic for it: AI is grafting nearly every creature I play. while I'm grateful for it, unless you have a specific deck, it's really an unwise action to do.
I think this is probably due to the choice not having an implicit target picker (there is no real target). The AI is essentially choosing blind. "Adding a +1/+1 counter is surely a good thing"

Which AI are you using? I mainly use Monty Carlo, and didn't encounter this when implementing graft.
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Why did the AI do that...?

Postby jerichopumpkin » 09 Oct 2014, 18:08

it was Minimax
jerichopumpkin
 
Posts: 212
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Why did the AI do that...?

Postby ShawnieBoy » 10 Oct 2014, 12:46

jerichopumpkin wrote:it was Minimax
I may be totally wrong (Melvin's the AI master), but I think that MiniMax doesn't look so far into the future.

I'll see if there's some way of having the AI only agreeing to graft it's own creatures.
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Why did the AI do that...?

Postby Lodici » 26 Oct 2014, 23:13

I have given up on MCTS and have been playing the las vegas Ai for a while now and I think this plays a pretty good aggressive game but still sometimes it just is so... ](*,)
stupid-ai.png

What makes this even more incomprehensible/ironic is that Serra Ascendant is the card being played and which positively wants you to increase your life (to 30).
User avatar
Lodici
Programmer
 
Posts: 399
Joined: 13 Oct 2013, 09:44
Has thanked: 29 times
Been thanked: 71 times

Re: Why did the AI do that...?

Postby muppet » 17 Feb 2015, 19:43

Is this why you get suicide attacks.

Situation ai has 1/1 player has 2/2. it is normal for the ai to attack into the 2/2 and just lose the creature.

reasoning. ai hmm if I attack there are two outcomes they block I lose no life and they don't block they lose 1 life. If I don't attack no one loses life. Therefore attack is better.

If this is the case it should be possible to test it and fix it.
Of course adding an evaluation function that doesn't solely depend on life totals wld be better using permanents in play on both sides and cards in hand for example in addition to life.

Also does the ai still assume that cards in the opps hand are 8 mana 1/1 first striking hasty fliers cos if so there wld seem to be room for an improvement here for example assuming all cards are 2/2 creatures for 2 mana has to be better even.
muppet
Tester
 
Posts: 590
Joined: 03 Aug 2011, 14:37
Has thanked: 33 times
Been thanked: 30 times


Return to Magarena

Who is online

Users browsing this forum: No registered users and 14 guests


Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 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 14 guests

Login Form