Cards to exclude in generated decks
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Cards to exclude in generated decks
by DennisBergkamp » 16 Jun 2009, 06:08
I think I started a topic like this awhile ago... anyway, there's a lot of cards the AI (or the player in a generated deck) cannot use effectively (counterspells, Aether Vial, Tromp the Domains, etc.).
Feel free to post some completely useless cards you've received during a constructed match when randomly generating a deck, or have witnessed the AI receive some cards he cannot use effectively at all, and I'll add them to the list of cards that shouldn't show up during these kind of games.
Feel free to post some completely useless cards you've received during a constructed match when randomly generating a deck, or have witnessed the AI receive some cards he cannot use effectively at all, and I'll add them to the list of cards that shouldn't show up during these kind of games.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Cards to exclude in generated decks
by Mr.Chaos » 16 Jun 2009, 15:57
I think Terramorphic Expanse should be on the list.
Compy had it in play in 2 games and never used it.
Compy used the 4-color deck I downloaded a while ago from here.
I actually never saw the card in a generated deck match although I have played plenty of those.
Compy had it in play in 2 games and never used it.
Compy used the 4-color deck I downloaded a while ago from here.
I actually never saw the card in a generated deck match although I have played plenty of those.
= coder at work, according to a coder.It does explain some of the bugs.
- Mr.Chaos
- Tester
- Posts: 625
- Joined: 06 Sep 2008, 08:15
- Has thanked: 0 time
- Been thanked: 0 time
Re: Cards to exclude in generated decks
by GandoTheBard » 17 Jun 2009, 15:44
Id say exclude any cards that aren't 100% correct. This way you won't have people asking awkward questions about enchantment auras that are coded as sorceries.
visit my personal homepage here: http://outofthebrokensky.com
Listen to my podcast with famed AJ_Impy "Freed from the Real" on http://puremtgo.com
Listen to my podcast with famed AJ_Impy "Freed from the Real" on http://puremtgo.com
-
GandoTheBard - Tester
- Posts: 1043
- Joined: 06 Sep 2008, 18:43
- Has thanked: 0 time
- Been thanked: 0 time
Re: Cards to exclude in generated decks
by Chris H. » 26 Oct 2009, 13:40
I'm looking through the CardFactory code and I am investigating the cards with Buyback. It appears that the computer can not use Buyback. As an example, the Capsize spell states:
public boolean canPlayAI() {return false;}
I guess that these five buyback spell cards should be added to the GenerateConstructedDeck.java file at the "//cards the AI cannot play (effectively):" section:
Capsize
Elvish Fury
Lab Rats
Sprout Swarm
Whispers of the Muse
public boolean canPlayAI() {return false;}
I guess that these five buyback spell cards should be added to the GenerateConstructedDeck.java file at the "//cards the AI cannot play (effectively):" section:
Capsize
Elvish Fury
Lab Rats
Sprout Swarm
Whispers of the Muse
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Cards to exclude in generated decks
by DennisBergkamp » 26 Oct 2009, 15:05
Ah no, actually the AI currently *CAN ONLY* use the full buyback option of those spells.
This should be changed I guess (since sometimes it's actually smart to cast Capsize without the buyback portion), but it's tricky to check these conditions.
This should be changed I guess (since sometimes it's actually smart to cast Capsize without the buyback portion), but it's tricky to check these conditions.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Cards to exclude in generated decks
by Chris H. » 26 Oct 2009, 15:22
`DennisBergkamp wrote:Ah no, actually the AI currently *CAN ONLY* use the full buyback option of those spells.
This should be changed I guess (since sometimes it's actually smart to cast Capsize without the buyback portion), but it's tricky to check these conditions.
Is there a way to determine how much mana the computer has untapped? And tie this in with the number of cards in the computer's hand?
if computer can afford buyback and has has less than 4 cards in hand
set buyback to true
else
set buyback to false
The SpellAbility spell_one and SpellAbility spell_two code would follow and would need to check the buyback flag.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Cards to exclude in generated decks
by DennisBergkamp » 26 Oct 2009, 15:28
Actually, this is how it would happen already. AI will always try to cast its largest spell/ability.
But I'm not sure if that's much of an improvement, I guess it also depends on the spell, but oftentimes it's a good idea to save up for a buyback...
But I'm not sure if that's much of an improvement, I guess it also depends on the spell, but oftentimes it's a good idea to save up for a buyback...
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 39 guests