juzamjedi wrote:2. The AI could still use some improvement on what cards to value in draft. For example I had a
Mox Jet +
Library of Alexandria in the same pack, both were passed to me. I'll guess you probably have an algorithm to take good cards in a couple of colors, but make sure the AI knows to take artifacts / lands that are insane.
In the first 2 picks, the AI chooses the "best" colored creature in the pack, then sets its primary colors based on those picks. For draft purposes, I simply sort the cards based on p/t compared to CMC, with keywords and text size adding some weight.
Subsequent picks are randomly chosen from a more focused list of cards. This list is built like this: The best 2 creatures in its colors. Of the Instants and Sorceries in the pack in its colors, it sorts by CMC and selects the middle one. Of the Enchantments in the pack in its colors, it sorts by CMC, then chooses the cheapest. If there's a planeswalker in the pack in its colors, then it's added. IF there are no cards in its colors, then it looks for the cheapest Artifact and a Land that produces mana in one of its colors.
I attached a pick-by-pick summary, produced from playing your draft pool. If you enable Developer Mode (after I upload a couple revisions today) you can get this list too. (it was too big for the post, and the forum doesn't take txt attachments)
juzamjedi wrote:Looks like I spoke too soon. I did a second draft and got the error below which happened after my last draft pick (just as described by bane221). This happened when I changed IgnoreRarity=True. Just to confirm I changed back to IgnoreRarity=False and the draft worked fine.
Thanks, I found the bug on this. Two parts- One, if you're Ignoring Rarity, then you need to set NumRarity parameters to zero. (after revision, only need NumCards) Two, I fixed the problem in code, by multiplying the NumCards (x NumPacks) instead of asking the BoosterGenerator how many cards were in a pack. (which adds up the NumRarity parameters)
A couple other tweaks go along with this update, including the DevMode checkbox to take effect immediately when clicked, instead of only when launching the game window.