Skip to content

Instantly share code, notes, and snippets.


Elia Robyn Lake (Robyn Speer) rspeer

View GitHub Profile
rspeer / dominioncards.txt
Created Jun 13, 2015
Dominion cards up through Adventures, extracted from
View dominioncards.txt
Cellar Action $2 +1 Action, Discard any number of cards. +1 Card per card discarded.
Chapel Action $2 Trash up to 4 cards from your hand.
Moat Action - Reaction $2 +2 Cards, When another player plays an Attack card, you may reveal this from your hand. If you do, you are unaffected by that Attack.
Chancellor Action $3 +2 Coins, You may immediately put your deck into your discard pile.
Village Action $3 +1 Card, +2 Actions.
Woodcutter Action $3 +1 Buy, +2 Coins.
Workshop Action $3 Gain a card costing up to 4 Coins.
Bureaucrat Action - Attack $4 Gain a silver card; put it on top of your deck. Each other player reveals a Victory card from his hand and puts it on his deck (or reveals a hand with no Victory cards).
Feast Action $4 Trash this card. Gain a card costing up to 5 Coins.
Gardens Victory $4 Variable, Worth 1 Victory for every 10 cards in your deck (rounded down).
This file contains code that, when run on Python 2.7.5 or earlier, creates
a string that should not exist: u'\Udeadbeef'. That's a single "character"
that's illegal in Python because it's outside the valid Unicode range.
It then uses it to crash various things in the Python standard library and
corrupt a database.
On Python 3... well, this file is full of syntax errors on Python 3. But
if you were to change the print statements and byte literals and stuff:
rspeer /
Created Oct 17, 2011
Dominiate test: Big Money
# This is an implementation of the pure Big Money strategy, updated
# based on WanderingWinder's forum posts:
name: 'Big Money'
author: 'WanderingWinder'
gainPriority: (state, my) ->
"Colony" if my.getTotalMoney() > 32