The Invent with Python Blog

Writings from the author of Automate the Boring Stuff.

CircleMUD Data in XML Format for Your Text Adventure Game

Mon 19 March 2012    Al Sweigart

CircleMUD was a popular piece of server software for running a MUD, and it came with a sizeable virtual world (which the admin could modify/append to customize their fantasy world.) It would be pretty handy to use parts of this data if you were creating your own virtual world for a text adventure game, but the format of CircleMUD's data files is kind of obtuse and not amenable to manipulation.

So I wrote a few scripts to convert these files into a single XML file which is 4MB when unzipped. You can parse this file and modify it to suit your needs. It contains 1979 rooms across 30 different areas (called zones in the file), with 46 shops and 569 different "mobs" (mobile objects, which are the monsters and NPCs). There are 678 different types of objects, including 116 weapons and 154 types of armor.


"I Need Practice Programming": 49 Ideas for Game Clones to Code

Mon 20 February 2012    Al Sweigart

You want to practice writing code but can't seem to find any open source projects that are at your level or easy for new people to contribute to. Here's a list of game clone ideas for you to implement. Each has a short description of the game, links to videos of the game, and descriptions of what kind of algorithms you'll need to know in order to implement them.


Pygame Cheat Sheet

Fri 07 October 2011    Al Sweigart

If you already know a bit of programming and Python, and want to get up to speed on the Pygame 2D game framework, here's a cheat sheet that you can look over. It implements a very short Pygame program covering most of Pygame's basic features.


Virtual Caesar Cipher Wheel program

Sun 18 September 2011    Al Sweigart

The Caesar Cipher Wheel is a paper cutout that can be used to perform encryption and decryption in the Caesar Cipher. However, if you don't have a printer but do have Python and Pygame installed, you can use this Caesar Cipher Wheel program to rotate a virtual cipher disk instead.