It is currently 29 Oct 2025, 02:56
   
Text Size

AI Work/Combat Prediction

Post MTG Forge Related Programming Questions Here

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

Re: AI Work/Combat Prediction

Postby Sloth » 28 Feb 2011, 16:55

I had to change some of your code Masher, because it caused the untap triggers to trigger, when the AI was planning the attack.

Regarding the canCauseDamage variable: I tested (and improved) the filter for creatures that won't deal damage and it works fine.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: AI Work/Combat Prediction

Postby friarsol » 28 Feb 2011, 18:14

Combat prediction is looking better and better. Keep up the good work.

I just noticed a weird attack today. AI has a 2/2 and I was at 2 life. I have a 2/1 First Striker. But AI attacks anyway.

Code: Select all
3 = ai aggression
Normal attack
Not sure if he thought he was going to trade, or what the plan was. But it didn't work.

Edit: Next turn he attacks with a 1/1 in the same situation. They must not be considering the first strike in this case.

Code: Select all
2 = ai aggression
Normal attack
0
Adding 2 damage to Goblin Matron
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: AI Work/Combat Prediction

Postby ZzzzSleep » 28 Feb 2011, 23:24

With these changes, is the AI taking vigilance into account? In the Feb 19 release, the AI was low on life, but declined to attack with a vigilant flying creature that I was unable to block.
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: AI Work/Combat Prediction

Postby Sloth » 01 Mar 2011, 20:25

friarsol wrote:Combat prediction is looking better and better. Keep up the good work.

I just noticed a weird attack today. AI has a 2/2 and I was at 2 life. I have a 2/1 First Striker. But AI attacks anyway.

Code: Select all
3 = ai aggression
Normal attack
Not sure if he thought he was going to trade, or what the plan was. But it didn't work.

Edit: Next turn he attacks with a 1/1 in the same situation. They must not be considering the first strike in this case.

Code: Select all
2 = ai aggression
Normal attack
0
Adding 2 damage to Goblin Matron
I was unable to reproduce this. I used AI Savannah Lions against my Coiled Tinviper and even at low life (me), the AI didn't attack into them. How many creatures did the AI have?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: AI Work/Combat Prediction

Postby friarsol » 02 Mar 2011, 03:09

Sloth wrote:I was unable to reproduce this. I used AI Savannah Lions against my Coiled Tinviper and even at low life (me), the AI didn't attack into them. How many creatures did the AI have?
That was the only one. AI was at a bunch of life (like 16) and I had a Vampire Hexmage and something that was tapped that I was attacking with (don't remember what it was).
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: AI Work/Combat Prediction

Postby jeffwadsworth » 02 Mar 2011, 05:48

Sloth wrote:I had to change some of your code Masher, because it caused the untap triggers to trigger, when the AI was planning the attack.

Regarding the canCauseDamage variable: I tested (and improved) the filter for creatures that won't deal damage and it works fine.
Haha. I was wondering what the heck was going on while testing Mesmeric Orb...
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: AI Work/Combat Prediction

Postby Masher8 » 02 Mar 2011, 16:42

Sloth wrote:I had to change some of your code Masher, because it caused the untap triggers to trigger, when the AI was planning the attack.

Regarding the canCauseDamage variable: I tested (and improved) the filter for creatures that won't deal damage and it works fine.
No problem. Real life is preventing me doing anything on this at the moment.
Masher8
 
Posts: 18
Joined: 05 Feb 2011, 13:57
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 10 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 10 guests

Login Form