Ai deck builders

All created AI or player decks. All discussion related to Wagic AI deck competion and results.
Locked
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Ai deck builders

Post by Zethfox »

wagic 18 brings new toys for you to play with when it comes to building an ai deck

first I'll cover hints
#HINT:castpriority(blah,blah,blah,blah,ect)
this is a method to set the order in which ai decides to play cards, you can for
example tell ai to look for 2 instants, before trying to find a creature.
be sure to list all main types of the deck otherwise ai will pass on stuff
this is the current
const char* types[] = {"planeswalker","creature", "enchantment", "artifact",
"sorcery", "instant"};

so be sure you include them if the decks need them.
other the above example would be coded
HINT:castpriority(instant,instant,creature,planeswalker,enchantment,artifact,sor
cery)

as you can see this deck will now look for and play if possible, 2 instants
before any of the other types.
this will really help with decks which rely on cards like dark ritual to produce
mana to cast creature, simply by listing instant before creature. if the deck
had dark rituals, in the above example, and it had them in hand, it would then
cast dark ritual, dark ritual, then one of the remaining types.

next
#HINT:dontattackwith(targetchooser)
this allows you to tell ai not to attack with a certain card or cards of a certain type...for instance
#HINT:dontattackwith(elvish piper)
that tells ai that elvish piper should only be used as a blocker and for its ability to bring creatures in play....
#HINT:dontattackwith(creature[power<=0])
this means if it doesn't have a power greater then 0 then don't attack with it.
you can come up with some strategies with this, to help ai better understand what a creature was meant for.

and lets not forget
toggledifficulty:easy card|hard card
toggledifficulty:lotus petal|black lotus
while the deck you are fighting considers you easy, it will use lotus petals...but if you are considered hard to that ai deck it replaces that lotus petal with a black lotus.


with these 3 tool you can tailor your ai deck to be much more difficult :) they don't seems so at first, until you realize that a elvish piper that is only on the field to use it's ability in a deck with eldrazis is a scary thing. or when ai finally can cast dark ritual chains to get out a creature in turn 1 thats 7 mana.....
Mercury071476
Posts: 43
Joined: Mon Apr 26, 2010 5:15 am

Re: Ai deck builders

Post by Mercury071476 »

This is awesome, can't wait :D
matchet
Posts: 24
Joined: Fri Aug 20, 2010 9:56 am

Re: Ai deck builders

Post by matchet »

very nice improvement! this will make ai decks without snowball effect (like kithkings-anthem or allies) more hard to play against. :)
Mercury071476
Posts: 43
Joined: Mon Apr 26, 2010 5:15 am

Re: Ai deck builders

Post by Mercury071476 »

Sori for this nub question...how do we apply this feature in the new version?
sandman423
Posts: 806
Joined: Thu Sep 10, 2009 8:59 pm

Re: Ai deck builders

Post by sandman423 »

I want CPU to play better...How do I apply this in 18.6
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Ai deck builders

Post by Zethfox »

you have to add them to the ai deck...the hints...
i add really great stuff and no one uses them except myself :)
KF1
Posts: 1952
Joined: Tue Apr 06, 2010 7:04 pm

Re: Ai deck builders

Post by KF1 »

Zethfox wrote:you have to add them to the ai deck...the hints...
i add really great stuff and no one uses them except myself :)
I'd give it a try Zeth if you zip something up to download and try out.
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Ai deck builders

Post by Zethfox »

i've explain the use of these so many times now that i got to the point where i really don't care if theyre used or not...reason being i go through and email back and fourth with people about how it's done...they pretend to be all hyped but really all they were doing was using it as a means to request card groups...then i see nothing coming from wasting my time.

follow the instructions...they really are THAT easy to use....
3v1lchr1s
Posts: 8
Joined: Tue Mar 20, 2012 2:47 pm

Re: Ai deck builders

Post by 3v1lchr1s »

Is there a way to code the ai to not play a legendary when there is already one on the field? I haven't seen the ai play the same legendary creature but I have seen the ai play two of the same legendary land and just ended up destroying the one it had to start with.
KF1
Posts: 1952
Joined: Tue Apr 06, 2010 7:04 pm

Re: Ai deck builders

Post by KF1 »

Can someone post an example ai deck where the AI uses sacrifice and bloodthirst correctly using the hints?
Locked