pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Regnancy

Regnancy - 839c9659f89f

Max Power (paolo)

Tags:

Description

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

For more information about Dominion:
http://boardgamegeek.com/boardgame/36218/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:
http://www.myvideo.de/watch/7602760/regnancy_a_computer_game_based_on_the_dominon_board_game

Changes

Finally, a website for Regnancy

What's new:

  • base set and Intrigue complete, Alchemy complete (except Golem and Possesssion)
  • some major code cleanup (still a lot to do)
  • added command line options (run regnancy.py -h for more information)
  • started work on improvement of the AI player (will now respond to some cards, but still a lot of work to do)
  • as always, a bunch of new cards added
  • new option 'Quick Match', which will start a new game against an AI player with a random set of cards immediately
  • some bug fixes
  • original artwork will now be downloaded automatically (even on windows)
  • Links

    Home Page: http://regnancy.barrelburst.net/
    Source: https://bitbucket.org/BigYellowCactus/regnancy/
    Windows: https://bitbucket.org/BigYellowCactus/regnancy/
    Mac: https://bitbucket.org/BigYellowCactus/regnancy/

    Screenshot


    click to view original size

    Releases

    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

    Pygame.org account Comments

    If you wish to leave a comment with your pygame.org 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/aiclient.py 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 start_server.py 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 http://pygame.org/ftp/pygame-1.9.1.win32-py2.6.msi), then start "start_client.py"

    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 "game.py" gets me this error:
    Traceback (most recent call last):
    File "E:\regnancy\game.py", line 19, in <module>
    from rules.debugsetup import setups, commonpiles
    File "E:\regnancy\rules\debugsetup.py", line 17, in <module>
    from .cards.base import *
    File "E:\regnancy\cards\base\__init__.py", 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\start_client.py", line 16, in <module>
    from client.pygameclient.pygameclient import PygameClient
    File "E:\regnancy\client\pygameclient\pygameclient.py", 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:
    http://www.myvideo.de/watch/7602760/regnancy_a_computer_game_based_on_the_dominon_board_game
    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
    http://regnancy.hg.sourceforge.net:8000/hgroot/regnancy/regnancy
    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 http://dominion.diehrstraits.com/ 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.
    spotlight

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


    Oct 20, 2014

    Oct 16, 2014

    Oct 9, 2014

    Oct 8, 2014

    Oct 7, 2014

    Oct 4, 2014

    Oct 1, 2014

    Sep 19, 2014

    Sep 17, 2014

    Sep 9, 2014

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