It is currently 19 Apr 2024, 19:48
   
Text Size

AI card prescription for decks and combos

Post MTG Forge Related Programming Questions Here

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

AI card prescription for decks and combos

Postby Triadasoul » 08 Nov 2009, 14:52

I don't know how relevant the idea is, but i think it better to write it here %). I think it'll make effect without complicating the AI and card implementation.

What if the user can make a list of combos used in the deck and a list of critical cards that will be in prescription block of each deck for AI to use it to cast more complex combos and to protect/counter/destroy crucial cards of his/opponent deck?
+usage of combos in certain situations such as: low life, can't attack, crucial opponent's cards on battlefield etc...
Triadasoul
 
Posts: 223
Joined: 21 Jun 2008, 20:17
Has thanked: 0 time
Been thanked: 4 times

Re: AI card prescription for decks and combos

Postby Huggybaby » 09 Nov 2009, 16:58

That's an interesting idea. =D>
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: AI card prescription for decks and combos

Postby mtgrares » 09 Nov 2009, 20:48

Your idea is fine. Currently the AI is very crude. It has a hard time choosing targets and paying for cards and sometimes it can't even do that without generating errors (in Java errors are usually exceptions). The AI randomly plays cards from his hand. (It isn't quite random, the computer' s hand is sorted from high cost to low cost, and the computer tries to pay high costed cards first.)

The computer is so stupid it doesn't even know the result of the cards that it plays. Right now the computer is barely able to walk. Hopefully later the computer will be able to run.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: AI card prescription for decks and combos

Postby Triadasoul » 10 Nov 2009, 10:21

I hope it could fly, because this project is great! =D>

Also there could be a value integer of combos/crucial cards for ai to choose. It's somehow implemented in manalink as "base card value". But in the context of a deck the values should differ for a certain card i think, so this values also could be put in prescription part.
Triadasoul
 
Posts: 223
Joined: 21 Jun 2008, 20:17
Has thanked: 0 time
Been thanked: 4 times

Re: AI card prescription for decks and combos

Postby mtgrares » 12 Nov 2009, 22:16

Magma (other program that lets you play against the computer) actually lets you assign a "priority number" for specific cards in a deck, so different decks could have different cards that are important to that deck. This type of system is good because the AI could "look" for those cards by mulliganing and searching for those specific cards using Demonic Tutor.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: AI card prescription for decks and combos

Postby Rob Cashwalker » 13 Nov 2009, 03:45

It's a value that's only useful in context of a single deck. And even then, the size of a deck, and format may skew the usefulness of it. Think of a 100-card singleton... or 250-card Battle of Wits....

But in general, cards with longer text are probably more valuable/essential which translates to better targets for removal AI. And it's an easy decision to code.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: AI card prescription for decks and combos

Postby zerker2000 » 13 Nov 2009, 06:54

Nice approach to killing combo pieces :). Makes total sense, and will probably result in a "Oblivion Ring -> Stuffy Doll" sooner or later :P.
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: AI card prescription for decks and combos

Postby Triadasoul » 14 Nov 2009, 15:34

And i think it's an easiest method to implement such cards as Zur's Weirding :twisted:
Triadasoul
 
Posts: 223
Joined: 21 Jun 2008, 20:17
Has thanked: 0 time
Been thanked: 4 times


Return to Developer's Corner

Who is online

Users browsing this forum: Google [Bot] and 99 guests


Who is online

In total there are 100 users online :: 1 registered, 0 hidden and 99 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: Google [Bot] and 99 guests

Login Form