Not quite finished with the new deck generator, but will send you a copy of the code when I get it all working
Only required three new Classes to get that working.
I'm just tinkering with the code and adding bits and pieces here and there
mostly for my own enjoyments, quite likely that I'll add a feature that you
don't like or don't want BTW. My focus is not on the AI (yet).
Question:
To get that tribal format to work properly, I'd need to add the full card text for each card to cards.txt and cards2.txt...
Is that likely to cause any (legal) issues?
My idea for the tribal format was to get my deck-generator to pick a (common) creature-type in the selected mana colours and then build a deck around that, and of course with a full-text search of each card it could find other creature-type related cards and make the deck a real tribal deck as opposed to just adding a bunch of random instants, sorceries, etc.
(Quite possible that it would add 'hoser' cards for the creature-type as well, but that will just add to the fun
Anyway, to get back on topic:
As an example,
Tattermunge Maniac and
Goblin Chieftain are not common.
From "cards.txt"
>
Tattermunge Maniacimage=http://magiccards.info/scans/en/shm/219.jpg
value=1
rarity=C
type=Creature
subtype=Goblin,Warrior
color=rg
converted=1
cost={R/G}
power=2
toughness=1
ability=attacks each turn if able
timing=main
>
Goblin Chieftainimage=http://magiccards.info/scans/en/m11/141.jpg
value=3
rarity=C
type=Creature
subtype=Goblin
color=r
converted=3
cost={1}{R}{R}
power=2
toughness=2
ability=haste
static=player
timing=fmain
Easy to fix and edit, but quite a bit of work to go through the whole lot and check and correct them...