Example #1
0
 def test(self):
     server = TestServer()
     game = Game()
     server.start()
     game.buildWorld()
     server.theCli.onecmd('goto 1')
     server.theCli.onecmd('map')
     self.assert_(game.zone)
     server.run(10)
     server.close()
Example #2
0
#!/usr/bin/env python

from pymud.server import Server
import pymud

from mm.game import Game
import mm.items
import mm.rooms
import mm.commands

if __name__ == "__main__":

    server = Server()
    game = Game()

    server.start()
    server.creator.commands.update(mm.commands.commands)
    game.buildWorld()
    server.run()
    server.close()