rspeer/dominiate — pull request #63 by bilts (2012-01-15 06:09:03+00:00)
Title: Fix Courtyard's choice of card to put back on deck

There were two problems. First, coinLossMargin was using State#coins rather than PlayerState#coins. The former is undefined, so coinLossMargin was incorrectly returning 0. Second, the treasure sorting in putOnDeckPriority was reversed, so the AI would put back the lowest valued treasure it could, rather than the highest.

These are now fixed. Fixes #53.