Skip to content

2. Your Personal Game

Your game directory is at ~/mudgame on the MUD server — reachable from the MUD Terminal tile. Edit files the same way you did in Unit 3, with nano:

$ nano mudgame/typeclasses/rooms.py

Python code changes don't take effect until the Server restarts. You don't do that from the terminal, though — you do it in the game itself, from the MUD tile:

> @reload
 Server restart initiated ...

@reload only restarts the Server (your code). It doesn't touch the Portal, so you stay connected and logged in.

Try it

Open mudgame/typeclasses/rooms.py in nano just to look around (don't change anything yet). Then switch to your MUD tile and run @reload. You should see a confirmation message and stay connected.

Tip

If a change badly breaks something and @reload itself won't work, that's what your instructor's admin access is for — ask before you try to fix it by deleting things.

Next: Classes and Objects →