pygame is
Simple DirectMedia Layer is
Site Swing

Regnancy - 0.M42

Max Power (paolo)



This game is a python implementation of the board game "Dominion".

For more information about Dominion:

To get the artwork of the cards, run one of the get-artwork-scripts. These will download scans of the cards from various sites.
you can see a video of and older version of regnancy here:


- no longer alpha stadium (beta now)
- changed GUI-library
- lots of bug fixes
- (very basic) AI-Player added
- removed scaled images (now being created on-the-fly via pygame)
- some more cards

to start a game, click on "start game", then "join game". some card images are missing, don't worry about that, you probably want to download the images from The AI-Player is very basic, so don't play militia, it won't respond to it yet :)


Home Page:


click to view original size


Regnancy - 839c9659f89f - May 24, 2012
Regnancy - 1a7b7240e739 - May 7, 2012
Regnancy - 6600de7481f1 - Apr 26, 2012
Regnancy - 0.M42 - Jun 13, 2010
Regnancy - 0.M17 - Jun 3, 2010
Regnancy - 0.74 - May 30, 2010
Regnancy - 0.44 - May 24, 2010 account Comments

If you wish to leave a comment with your account, please sign in first.

November 19, 2010 8:47am - Mike Robinson - nickname: (robins80)
Just out of curiosity, has this been ported to 3.1?
August 26, 2010 1:35am - Nick Nunes - nickname: (nine9ths) - 4/5
I got this running on OS X 10.6.4 with python 2.7 and pygame 1.9.1 but it took a bit of source hacking to get it to run. The server problem below sounds like the result of putting in the wrong IP address when starting the game (it should be your local ip). Also you'll need to change the ip in client/aiclient/ to your local ip since it's hardcoded to the default. I got the unicode key error any time I tried to change my name, it clears if you leave the name alone.

Once it's up and running it's great, I've played a few dozen games, it crashes sometimes and I've gotten negative buys a few times but stable enough to finish many games.

I got bored with the cards available in the .43 release and implemented a bunch more cards (starting with the Colony and Platinum from Prosperity). Any interest in my changes?
June 28, 2010 12:47pm - Max Power - nickname: (paolo)
Maybe the server could not be started. Look at the output or try to start the server via commandline like:
python 9989
June 24, 2010 10:17pm - Mike Robinson - nickname: (robins80)
Ok. I get it to come up, but nothing happens when I click the start game and join game buttons.
June 24, 2010 7:51am - Mike Robinson - nickname: (robins80)
Got it to come up briefly. Thanks.
June 23, 2010 7:03pm - Mike Robinson - nickname: (robins80)
Pygame 1.9.1 supposedly supports Python 3. I downloaded it a few days ago.
June 21, 2010 6:56am - Max Power - nickname: (paolo)
You need Python 2.6, as there isn't even a pygame version for Python3 (iirc). So, install Python 2.6, then install pygame for Python 2.6 (for windows it's, then start ""

June 20, 2010 12:40pm - Mike Robinson - nickname: (robins80)
How does one start this game? I am getting various errors trying to run this. Running "" gets me this error:
Traceback (most recent call last):
File "E:\regnancy\", line 19, in <module>
from rules.debugsetup import setups, commonpiles
File "E:\regnancy\rules\", line 17, in <module>
from .cards.base import *
File "E:\regnancy\cards\base\", line 1, in <module>
from bureaucrat import Bureaucrat
ImportError: No module named bureaucrat

Running start_client gets me this:
Traceback (most recent call last):
File "E:\regnancy\", line 16, in <module>
from client.pygameclient.pygameclient import PygameClient
File "E:\regnancy\client\pygameclient\", line 31
exec "from %s import *" % (f[:-3])

I am running Python 3.1.2
June 13, 2010 8:38am - Max Power - nickname: (paolo)
I uploaded a video of regnancy in action, you can see it here:
June 8, 2010 2:53pm - Max Power - nickname: (paolo)
I am currently working on an AI opponent. There are already two basic implementations in the source code. One that always goes for pure big money and the others goes for big money + double smithy :)
You could also let them play against each other. But at the moment they are nothing more than dirty hacks I use to find some bugs in the game-logic and network-code.
June 8, 2010 2:20pm - Donpachi - nickname: (donpachi)
I've once written a console-based Dominion, I see yours is a bit more polished. ;)

Have you considered plugging in an AI opponent for single player?
June 8, 2010 7:20am - Max Power - nickname: (paolo)
I switched from SVN to Mercurial some days ago. The link is
I'm not going to upload a tarball soon because of would take years to upload (I have a slow internet-connection). But I will do if there's a "stable"-release. Sourceforge offers a source tarball download for SVN, but i haven't seen this option for Mercurial. Note that there are not the images with the original artwork in the repository, but i could give you a shell script that will download the images from and convert them via a gimp-plugin I wrote.
On the Project-Page on sourceforge ypu can see which cards are implemented so far. Currently i am writing a simple AI-bot and fixing some network-related code.
June 6, 2010 6:19pm - Kris Schnee - nickname: (snow)
Maybe I'm missing something, but I don't see any files available on your Sourceforge page. I'm eager to try this project out! The name's a little awkward though.
June 6, 2010 4:18pm - Lukasz P - nickname: (seem) - 5/5
Did I saw you on BGG? Nice work. Count on me for testing - I love Dominion and know pygame a little. Could you provide a tarball on sourceforge? If not, just give a link for Merc.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)