77

Dominion Card Picker / Randomizer

Posted July 16th, 2009. Filed under

I spent today dusting off my old PHP and SQL skills. If you play the card game Dominion, you may be well aware that an expansion just released called Dominion: Intrigue that doubles the number of cards. (If you don’t play Dominion, what the hell, man? It’s the best card game since Texas Hold’Em.)

Well, there’s an issue with playing with both the base set of Dominion and the new Intrigue set. To figure out which ten cards to play with, you have to mix cards from different sets together, shuffle, draw and then put those away and get out the piles of the corresponding cards. What a chore.

So I threw together the Dominion Card Picker.

With it, you can choose which sets you want to play with (including the promo cards if you have them) and the script will shoot out a random ten cards for you to play with, including letting you know which set each belongs to so you can dig them out of the correct box.

You can also add constraints to make the selection less lame like requiring a card with an extra buy to be in the ten or at least one card that nets an extra action.

Try it out and let me know if there are bugs or any ideas to improve it.

77 Responses so far

  1. FFL_King says:

    I would like to see a two Prosperity features which are alluded to in the Prosperity rulebook.

    1) I can explicitly add Platinum and Colony as cards in the 10 selections.

    2) I can auto generate 5 Prosperity selections similar to your Alchemy feature. This allows for ‘Prosperity Games’ designed to use Platinum and Colonies as basic cards.

  2. Kenneth Stuart says:

    A suggestion for improvement: Your option for… If there
    is an Attack card, require Moat. …could potentially by being
    modified as… If there is an Attack card, require Moat or
    Lighthouse …with the caveat that the seaside set be checked for
    use. CHEERS!

  3. Sam says:

    Great program, thanks for making and sharing it. Just a
    suggestion here too: Give the opition to not have any ATTACK cards
    be included in the selection of the ten decks. We don’t play any of
    the attack cards and still LOVE this game.

  4. nyckad says:

    Very useful program. I can suggest you to give the option to use the cards of the fan expansion prensented in BGG (fairy tale, salvation, royal court and book of magic).
    Thanks

  5. TheSeal says:

    Very cool site! I ended up finding yours after someone told me about the app for iTouch/iPad. Unfortunately I only have an iPod so can’t use that one. Looks like you turned this into a Facebook app at one point. Is there any chance of modifying it so it would work on the electronics I usually carry, besides my laptop, namely a Samsung Strive and an iPod Classic generation 7? I will definitely use it here when I’m at home. Thanks!

  6. Zack says:

    I thought about the FB app but realized that it wouldn’t do anything the site didn’t. Are you asking for an “offline” version?

  7. TheSeal says:

    Yes. Specifically something that would work on a Samsung Strive or an iPod classic 7th generation. These are the two electronics I carry with me most often. To put it in more general terms, a phone app that works on any smart phone, not just Apple or Android. I would definitely pay a standard app fee for this.

  8. TheSeal says:

    Something else that would be really great is a secondary randomizer for use with the Black Market.

  9. Daph says:

    I think a Black Market randomizer would be great too!

  10. Steve says:

    Very nice app. Here’s a few suggestions:
    1) Options to “exclude attack cards” and “exclude cards that give curses” so that the games can be faster.
    2) Option to “exclude duration cards”. Some Seaside cards are nice but we regularly avoid these.

    But if you have “Another ten cards” button avoid giving the same card again, a person can click until ten cards that meet a criteria are found. The button should scroll thru a shuffled set of cards.

  11. [...] the tradition of the Dominion Card Picker, I wrote up a little script so that you wouldn’t have to waste sheets of paper calculating [...]

  12. Djinncito says:

    Is there any way to get Cornucopia on it and a link to download all the images?

  13. Zack says:

    When someone posts the images to BGG, I’ll add Cornucopia.

  14. Kristina says:

    Woo, thanks, it’s great to have Cornucopia there, too.
    Any way you could get it to pick a “Bane” pile, too, if the Young Witch comes up?

  15. Zack says:

    That is what I will add next if I get time.

  16. AvidElite says:

    Suggestions:

    (1) An option to require at least one kingdom card per set selected (except the promos, obviously)

    (2) An option to increase or decrease the number of kingdom cards selected, to allow for “house rules” games with more or less supply piles.

    (3) The “require a moat” option modified to “require one of…” and let the users check any or all of the reaction cards in the game.

    (4) The ability to selectively blacklist any individual cards from any set. EG, check of “Throne Room” and it isn’t in the random pool.

    Your program is great, we use it all the time. Many thanks!

    ~AE

  17. Brittan says:

    I noticed you already have the Cornucopia set added to your site, which is awesome. With the set came Young Witch, a card that requires adding another card to the game with restrictions, namely 2 or 3 cost. It would be awesome if you could make something to generate such a card; or add to the program that if Young Witch is selected, it selects an additional Bane card.

  18. drzaus says:

    nice work! any chance you could release the source code? i’m just interested in the logic; i wanted to make a mobile version in javascript so i could use it offline on my ipod touch (with files lite).

  19. jkm says:

    Thanks! Can you please add Walled Village to the promo card include toggles?

    http://boardgamegeek.com/boardgame/101665/dominion-walled-village-promo-card

  20. Laszlosaurus says:

    Thanks for the Randomizer. I use it often (much easier than shuffling 100+ cards).

    However, I’d like to request a new sorting option: Alphabetical by expansion. That’s the natural order of the cards when stored in their original boxes and makes finding them easier.

  21. lawrence chatfield says:

    2nd notion for Walled Village – thnx 4 great randomizer! essential for our group.

  22. Rod Jackson says:

    This randomizer is awesome! Could you put up a Bitcoin donation address, or at least some sort of Paypal-related donation button? (I’d prefer Bitcoin, but would eventually get around to paying via prepaid debit card or something.)

    Keep up the great work!

  23. Taylor Kitto says:

    Please can you add Hinterlands? I’m going to have to switch to a different randomizer and i like yours the most.

  24. Zack says:

    I plan on doing it this week if I can get the images.

  25. Nick says:

    Thanks for putting this out. My wife, friends and I love it! :)

    Was wondering if you could add “walled village” promo deck. I just bought it off of ebay.. here is a link if you need the info.

    http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=200668043788

  26. James L. says:

    Great program, and I look forward to further updates! I agree with the previously posted suggestions of having the force moat command should be a force any counter card command. Good luck with that and I look forward to future updates!

  27. Jon D says:

    Love the program, and all of the suggestions for improvements above. My idea is to have an “Order alpha/by cost” button on the screen with the randomized board. We keep all of our cards bindered together (as many probably do), so with this button added we could retrieve the kingdom cards alphabetically, and still be able to switch the view to see that same board by cost.

Leave a Comment