It is currently 15 Jul 2025, 07:51
   
Text Size

Drafting

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

Re: Drafting

Postby 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
User avatar
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

Postby Sloth » 28 Jun 2011, 10:18

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!
Looking at the code it seems there is no color check for artifacts.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Drafting

Postby 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.
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: Drafting

Postby Sloth » 28 Jun 2011, 12:31

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.
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.
I think what Hellfish reported is also caused by colored artifacts in NPH.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Drafting

Postby 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
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: Drafting

Postby Rob Cashwalker » 30 Jun 2011, 01:47

I just changed the rating scale.
Code: Select all
(float)list.size() * (((((float)stopCount - (float)currentCount) * 100) / (float)stopCount) / 50);
list.size is the number of cards presented in the current pack, so the first pick in each pack would have a typical value of 15.
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.
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: Drafting

Postby Sloth » 30 Jun 2011, 11:16

Rob Cashwalker wrote:Full-draft mode boosters are now generated from a reduced cardpool to match the size of a small set (175 cards).
Why? If I chose a chaotic draft, I want to have full chaos.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Drafting

Postby 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.
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: Drafting

Postby juzamjedi » 30 Jun 2011, 15:37

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
I click on that link and get a blank form. I am interested in seeing draft data.
juzamjedi
Tester
 
Posts: 575
Joined: 13 Nov 2008, 08:35
Has thanked: 6 times
Been thanked: 8 times

Re: Drafting

Postby Sloth » 30 Jun 2011, 16:33

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.
That's what I imagined. I would prefer seeing lots of different cards though.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Drafting

Postby 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.
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: Drafting

Postby Sloth » 01 Jul 2011, 19:59

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.
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.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Drafting

Postby 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.
juzamjedi
Tester
 
Posts: 575
Joined: 13 Nov 2008, 08:35
Has thanked: 6 times
Been thanked: 8 times

Re: Drafting

Postby Braids » 21 Jul 2011, 22:26

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.
i am afraid you have caught us at a bad moment. i'm trying to write a guide for the new git repository.
"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. ;)
User avatar
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

Postby 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.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

PreviousNext

Return to Forge

Who is online

Users browsing this forum: Google Adsense [Bot] and 72 guests

cron

Main Menu

User Menu

Our Partners


Who is online

In total there are 73 users online :: 1 registered, 0 hidden and 72 guests (based on users active over the past 10 minutes)
Most users ever online was 5050 on 26 Jun 2025, 06:02

Users browsing this forum: Google Adsense [Bot] and 72 guests

Login Form