PyRisk ====== This is a Python engine and interface for building games similar to Albert Lamorisse's 1957 La ConquĂȘte du Monde. The game is perhaps better known as Risk, and is produced by Parker Brothers (now a division of Hasbro). Benefits over other open source implementations: * simple, extensible implementation * play-by-email Getting PyRisk ============== PyRisk is available as a Git repository:: $ git clone http://www.physics.drexel.edu/~wking/code/git/pyrisk.git The most recent commit is also available as a gzipped tarball at:: http://www.physics.drexel.edu/~wking/code/tar/pyrisk.tgz Once you get the source, installation is via Docutils:: pyrisk$ python setup.py build pyrisk$ python setup.py install Getting started =============== To setup play-by-email, you'll have to have some method to redirect appropriate messages into a named pipe. With procmail, that will look something like:: :0 * ^Subject: *Re:* [PyRisk* | >> /path/to/named/pipe Then just add your EmailPlayers to your game and go:: import pyrisk.base as b; import pyrisk.player.email as e; world = generate_earth() players = [EmailPlayer('Alice', 'alice@example.com', 'server@example.com'), EmailPlayer('Bob', 'bob@big.edu', 'server@example.com'), Player('Charlie')] e = Engine(world, players) e.run()