Dominion Strategy Forum

Dominion => Rules Questions => Topic started by: Chaithi on June 12, 2014, 05:24:52 pm

Title: Playing with Dark Ages and Prosperity
Post by: Chaithi on June 12, 2014, 05:24:52 pm
Hello! Have a question for you all. I am making an android application that will give a random set of 10 cards based on chosen expansions.

My question comes down to Dark Ages and Prosperity when played together.

If you have multiple expansions running, you're supposed to decide whether to add Colony/Platinum for Prosperity and the Overgrown Estate/Hovel/etc from Dark Ages based on proportion of cards in the deck. They said to use the randomizer from the cards and draw one, if Prosperity, add Colony/Platinum, if Dark Ages, add Hovel, etc.

So, if you play with cards from both expansions, would you do a check for each expansion separately or just do one draw so you'd have either the prosperity cards or the dark ages cards?
Title: Re: Playing with Dark Ages and Prosperity
Post by: Awaclus on June 12, 2014, 05:28:10 pm
You shuffle the kingdom cards, the top card determines Colony/Platinum and the bottom card determines Shelters.
Title: Re: Playing with Dark Ages and Prosperity
Post by: qmech on June 12, 2014, 05:28:57 pm
Check separately.

You can do what you want, but it's fun if you sometimes get to play with Shelters and Colonies.

(You probably know this, but there are a few applications like this around already.)
Title: Re: Playing with Dark Ages and Prosperity
Post by: Chaithi on June 12, 2014, 05:31:45 pm
I'm sure there is. But, wanted to do it as an exercise to learn programming in android. And mine is quite simple, and some people like that. But, happy to take feature requests.

I'm pondering adding in suggested sets from the wiki and letting you randomize those.

Thank you both for the answer. I had that programmed that way, but wanted to make sure!
Title: Re: Playing with Dark Ages and Prosperity
Post by: GendoIkari on June 21, 2014, 06:28:23 pm
Somewhere there's a long discussion about this. The official rules I believe say to check the top card for Prosperity, then check the next card for Dark Ages. The thing is, this actually gives slightly different odds than checking the top card for Prosperity, reshuffling, then checking the new top card for Dark Ages. I can't remember all the math at the top of my head, but ideally, if there is 1 card from each set, you would want a 10% chance of playing with Prosperity, and a 10% chance of playing with Dark Ages.
Title: Re: Playing with Dark Ages and Prosperity
Post by: Kirian on June 21, 2014, 09:34:26 pm
Entirely separate from the "official" rules, but it seems to me that a kingdom of 5 Prosperity and 5 DA cards really ought to be played with Colonies and Shelters no matter what.  That's an obvious special case though; whether it applies to less cherry-picked kingdoms is a different question.
Title: Re: Playing with Dark Ages and Prosperity
Post by: mail-mi on June 21, 2014, 09:39:24 pm
Entirely separate from the "official" rules, but it seems to me that a kingdom of 5 Prosperity and 5 DA cards really ought to be played with Colonies and Shelters no matter what.  That's an obvious special case though; whether it applies to less cherry-picked kingdoms is a different question.
I do the "pick one random card for each" thing, unless there are 3 or more prosperity/dark ages cards, then I add colonies/shelters in automatically.
Title: Re: Playing with Dark Ages and Prosperity
Post by: enfynet on June 21, 2014, 11:40:47 pm
Recently, we've been deciding before picking the kingdom to use Colonies/Shelters, based on whomever will be player 1 that game.
Title: Re: Playing with Dark Ages and Prosperity
Post by: eHalcyon on June 22, 2014, 03:22:22 am
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?
Title: Re: Playing with Dark Ages and Prosperity
Post by: qmech on June 22, 2014, 04:13:05 am
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)
Title: Re: Playing with Dark Ages and Prosperity
Post by: Kirian on June 22, 2014, 12:59:57 pm
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)

Yep.  Same reason everyone's first program is

echo("Hello world!");
Title: Re: Playing with Dark Ages and Prosperity
Post by: markusin on June 22, 2014, 08:26:01 pm
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)

Yep.  Same reason everyone's first program is

echo("Hello world!");
That wouldn't pass the W3C HTML validator though.
Title: Re: Playing with Dark Ages and Prosperity
Post by: Kirian on June 22, 2014, 09:24:34 pm
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)

Yep.  Same reason everyone's first program is

echo("Hello world!");
That wouldn't pass the W3C HTML validator though.

Sure, but HTML isn't a programming language.
Title: Re: Playing with Dark Ages and Prosperity
Post by: markusin on June 23, 2014, 11:42:23 pm
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)

Yep.  Same reason everyone's first program is

echo("Hello world!");
That wouldn't pass the W3C HTML validator though.

Sure, but HTML isn't a programming language.
Right, but...eh maybe you aren't trying to make a webpage with PHP after all.

I'd at least expect the echo for the XML version number. If not, man why are you learning PHP or whatever as your first programming language.
Title: Re: Playing with Dark Ages and Prosperity
Post by: Asper on June 24, 2014, 03:22:41 pm
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)

Yep.  Same reason everyone's first program is

echo("Hello world!");

Back then, i thought that was lame. Which is why i had mine say "Goodbye, cruel world!"
Title: Re: Playing with Dark Ages and Prosperity
Post by: Ozle on June 24, 2014, 03:26:45 pm
Mine said Free Kevin Flynn!
Title: Re: Playing with Dark Ages and Prosperity
Post by: markusin on June 25, 2014, 03:19:10 pm
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)

Yep.  Same reason everyone's first program is

echo("Hello world!");
This turned up today, and it turns out this is indeed used as a first program. Will you accept my apology?
Title: Re: Playing with Dark Ages and Prosperity
Post by: Kirian on June 26, 2014, 05:58:38 pm
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)

Yep.  Same reason everyone's first program is

echo("Hello world!");
This turned up today, and it turns out this is indeed used as a first program. Will you accept my apology?

Of course. :)

I don't know that many languages very well, so I'm not sure what various languages that syntax will work with.  Pretty certain PHP and JavaScript can parse it, and possibly Perl?
Title: Re: Playing with Dark Ages and Prosperity
Post by: GendoIkari on June 27, 2014, 12:12:17 am
Out of curiosity, is there a reason you are making your own app instead of using Dominion Shuffle (https://play.google.com/store/apps/details?id=nl.spellenclubeindhoven.dominionshuffle)?

Yes. (http://forum.dominionstrategy.com/index.php?topic=11289.msg387984#msg387984)

Yep.  Same reason everyone's first program is

echo("Hello world!");
This turned up today, and it turns out this is indeed used as a first program. Will you accept my apology?

Of course. :)

I don't know that many languages very well, so I'm not sure what various languages that syntax will work with.  Pretty certain PHP and JavaScript can parse it, and possibly Perl?

No, JavaScript doesn't know "echo". The only place I've personally seen it used is in DOS/Windows batch files. I'm actually not completely sure what language they use; some form of BASIC I suppose.
Title: Re: Playing with Dark Ages and Prosperity
Post by: jl8e on July 02, 2014, 11:16:47 am

I don't know that many languages very well, so I'm not sure what various languages that syntax will work with.  Pretty certain PHP and JavaScript can parse it, and possibly Perl?

No, JavaScript doesn't know "echo". The only place I've personally seen it used is in DOS/Windows batch files. I'm actually not completely sure what language they use; some form of BASIC I suppose.

I think DOS batch files were written in their own (very limited) language, not even as usable as BASIC.

echo’s used in Unix shell scripts, but not with that syntax.