Dominion Card Picker / Randomizer

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.

114 thoughts on “Dominion Card Picker / Randomizer”

  1. At least one other has mentioned this, but if possible, please add Guilds to the randomizer.
    I love the car randomizer. Thanx.

  2. I really like the card picker but if I could make one suggestion, not sure if its been suggested, I’d like to see where you can select certain cards to stay put when you hit the select ten new cards. It would allow you to keep your favorites and experiment with new sets.

  3. Is there an “offline” version of this? I’d love to have one on my laptop if I’m at a place where there is no internet and want to play Dominion šŸ™‚

  4. It doesn’t seem to be working…some kind of database error…

    Here is the error:

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘dominionpicker’@’68.178.254.9’ (using password: YES) in /home/content/z/h/i/zhiwiller/html/dominion/index.php on line 167
    Unable to connect to database! Please try again later.

    Any idea what’s up with that? Can we get it fixed so I can see if I like this applet?

  5. Getting an error:

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘dominionpicker’@’68.178.254.9’ (using password: YES) in /home/content/z/h/i/zhiwiller/html/dominion/index.php on line 167
    Unable to connect to database! Please try again later.

  6. can’t get the card generator to work. I get an error that I don’t have access to the server..

  7. I love the database, use it all the time to pick random cards! Thank you very much for publishing it for everybody to use. It has taken a HUGE amount of hassle out of setting up the dozen or so games of Dominion my kids want to play each day :).

    Do you have any plans of adding any community-built sets, like Fairytail, Salvation, or (and this is the one I really like) Royal Scrolls? If you’re not planning on including those, is there any way to get a copy of your database that I can tweak offline for personal use?

    Also, to anybody wanting to add EVENTS to the randomizer, I just pick two random events from the stack when we’re setting up. It’s easy enough to just pull those manually each time.

  8. Hey dude! Love the randomizer. If you could add Adventures and Empires (with an option to add landmarks and events), it’d be awesome.

    Also, I think there might be a bug. Walled Garden (the promo card), never shows up when selected. I tried easily 20-30 sets and it never shows up in the selection.

    Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

Human? * Time limit is exhausted. Please reload the CAPTCHA.