Drafting
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Drafting
by Hellfish » 28 Jun 2011, 09:44
How much does the AI prioritize staying in their colors? I'm not sure if this has been the case for a while, but at least since I started drafting NPH/MBS/SOM (A couple of weeks ago) exclusively it seems to always end up with 5-color decks, sometimes without mana sources for all cards!
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Drafting
by Sloth » 28 Jun 2011, 10:18
Looking at the code it seems there is no color check for artifacts.Hellfish wrote:How much does the AI prioritize staying in their colors? I'm not sure if this has been the case for a while, but at least since I started drafting NPH/MBS/SOM (A couple of weeks ago) exclusively it seems to always end up with 5-color decks, sometimes without mana sources for all cards!
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Drafting
by Rob Cashwalker » 28 Jun 2011, 12:12
The AI has been having trouble with the colorless artifact-heavy format. It tries to draft cards in its chosen colors, but likely runs out of options quick, so it starts picking up cards in other colors or artifacts..
When building its deck, it tries to pull cards from its colors first, then if it needs more cards, it will choose them from the other cards in its pool. There's a routine to figure out what basic lands need to be added based on the proportions of color in the casting costs, but it can't consider activation costs.
When building its deck, it tries to pull cards from its colors first, then if it needs more cards, it will choose them from the other cards in its pool. There's a routine to figure out what basic lands need to be added based on the proportions of color in the casting costs, but it can't consider activation costs.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Drafting
by Sloth » 28 Jun 2011, 12:31
It should be no problem to also check artifacts for the chosen two colors to not end up with Behemoth Sledge instead of Mage Slayer when drafting red green.Rob Cashwalker wrote:The AI has been having trouble with the colorless artifact-heavy format. It tries to draft cards in its chosen colors, but likely runs out of options quick, so it starts picking up cards in other colors or artifacts..
When building its deck, it tries to pull cards from its colors first, then if it needs more cards, it will choose them from the other cards in its pool. There's a routine to figure out what basic lands need to be added based on the proportions of color in the casting costs, but it can't consider activation costs.
I think what Hellfish reported is also caused by colored artifacts in NPH.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Drafting
by Rob Cashwalker » 29 Jun 2011, 15:49
If anyone's interested in following the draft picks, here's a script I wrote to do it:
http://cardforge.org/draftAI/checkDraftData.php
http://cardforge.org/draftAI/checkDraftData.php
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Drafting
by Rob Cashwalker » 30 Jun 2011, 01:47
I just changed the rating scale.
stopCount is typicaly 45. (number of packs * pack size)
currentCount is the overall draft pick count, first pick has value of 1.
I also reset the data table, erasing the test data I generated and the two drafts someone has already submitted.
edit - another couple changes I just made
The current card evaluation didn't take rarity into account, now it does.
Full-draft mode boosters are now generated from a reduced cardpool to match the size of a small set (175 cards).
- Code: Select all
(float)list.size() * (((((float)stopCount - (float)currentCount) * 100) / (float)stopCount) / 50);
stopCount is typicaly 45. (number of packs * pack size)
currentCount is the overall draft pick count, first pick has value of 1.
I also reset the data table, erasing the test data I generated and the two drafts someone has already submitted.
edit - another couple changes I just made
The current card evaluation didn't take rarity into account, now it does.
Full-draft mode boosters are now generated from a reduced cardpool to match the size of a small set (175 cards).
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Drafting
by Sloth » 30 Jun 2011, 11:16
Why? If I chose a chaotic draft, I want to have full chaos.Rob Cashwalker wrote:Full-draft mode boosters are now generated from a reduced cardpool to match the size of a small set (175 cards).
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Drafting
by Rob Cashwalker » 30 Jun 2011, 11:35
No worries, it's still choosing those 175 randomly from the full list. The commons will experience a bit of repetition, then the uncommons will repeat during the 3rd round packs. The rares and mythics won't repeat.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Drafting
by juzamjedi » 30 Jun 2011, 15:37
I click on that link and get a blank form. I am interested in seeing draft data.Rob Cashwalker wrote:If anyone's interested in following the draft picks, here's a script I wrote to do it:
http://cardforge.org/draftAI/checkDraftData.php
Re: Drafting
by Sloth » 30 Jun 2011, 16:33
That's what I imagined. I would prefer seeing lots of different cards though.Rob Cashwalker wrote:No worries, it's still choosing those 175 randomly from the full list. The commons will experience a bit of repetition, then the uncommons will repeat during the 3rd round packs. The rares and mythics won't repeat.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Drafting
by Rob Cashwalker » 30 Jun 2011, 18:29
The form is blank because there's no data... I'm a horrible drafter... I get rather impatient, so my picks should not be used. I just did some to test with.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Drafting
by Sloth » 01 Jul 2011, 19:59
Now that I can draft again, I have to repeat that I hate this change. I chose the full cardpool, because I don't want to see any cards twice. Maybe you can call this feature random limited cardpool or something, but give me back my full card pool.Rob Cashwalker wrote:No worries, it's still choosing those 175 randomly from the full list. The commons will experience a bit of repetition, then the uncommons will repeat during the 3rd round packs. The rares and mythics won't repeat.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Drafting
by juzamjedi » 21 Jul 2011, 21:47
What is the process I should use for updating the cube? I want to make some changes to cut some of the junk and replace with new / more fun cards.
Re: Drafting
by Braids » 21 Jul 2011, 22:26
i am afraid you have caught us at a bad moment. i'm trying to write a guide for the new git repository.juzamjedi wrote:What is the process I should use for updating the cube? I want to make some changes to cut some of the junk and replace with new / more fun cards.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. 

-
Braids - Programmer
- Posts: 556
- Joined: 22 Jun 2011, 00:39
- Location: Unknown. Hobby: Driving myself and others to constructive madness.
- Has thanked: 1 time
- Been thanked: 1 time
Re: Drafting
by Rob Cashwalker » 21 Jul 2011, 22:48
juzamjedi, you can just edit the deck file. As we progress with getting our source code repository set up for everyone, then it can be updated with your changes. Unless your question is deeper in meaning than just the card pool?
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Who is online
Users browsing this forum: Google Adsense [Bot] and 72 guests