rspeer / dominiate

A simulator for Dominion card game strategies
http://rspeer.github.com/dominiate
MIT License
121 stars 43 forks source link

Treasures, Attacks, dig(), and a few minor changes #15

Closed michaeljb closed 13 years ago

michaeljb commented 13 years ago

Reorganized Treasure and Attack cards, like Victory cards before. Added Loan, Talisman, and Fortune Teller, and made a few minor fixes to some other cards.

In Donald X.'s essay "Complexity in Rules on Cards" (http://forum.dominionstrategy.com/index.php?topic=121.0) he said: ** Suppose the rulebook defined "dig" appropriately. Then Golem could have read, "Dig for two Action cards other than Golems. Play them in either order."

That's pretty simple. Golem doesn't do anything complex really. Once you have that definition of "dig." And digging is straightforward too. But there aren't enough cards that dig, so digging is always spelled out on the cards, and well it takes a bunch of words. ** I figured we do have enough cards that dig to make a function out of it, so I went ahead and wrote it (and so far have implemented it on Fortune Teller, Loan, Saboteur, and Venture). A few other cards that are in the system now can be rewritten to use it (Adventurer and Hunting Party off the top of my head), and any future cards using the dig idea should be quicker to code since it's a function now.