So here, if you want, play with it yourself.
Is pretty basic maipulation of vectors of integers, cards are represented by integers. Sourcecode is partly German because it's some old stuff before I joined this forum. Anyway, should not be hard to understand.
1,2,3=Copper,Silver,Gold
4,5,6=Estate,Duchy,Province
make needs g++ to be in the $PATH, otherwise you must change the makefile or compile from hand.
Edit: All you need to change is in worstcase.cpp, in dominion.cpp is just basic game-mechanics.