Remove EmailPlayers from pyrisk.random_game
authorW. Trevor King <wking@drexel.edu>
Sat, 27 Mar 2010 00:01:30 +0000 (20:01 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 27 Mar 2010 00:01:35 +0000 (20:01 -0400)
Now that I'm pretty happy with the email interface, we don't need an
easy way to test it anymore.  It was probably never a good idea to
hard-code dummy emails anyway ;).  The code is still in README so
people setting up EmailPlayers will know what to do.

pyrisk/base.py

index 7ac8b667ef4c262cb352578012833ae226e92ddf..1cdd30f155f143560ee7f7183f93b5f91f238214 100644 (file)
@@ -838,15 +838,10 @@ def test():
     return failures
 
 def random_game():
-    from player.email import IncomingEmailDispatcher, OutgoingEmailDispatcher, EmailPlayer
     world = generate_earth()
-    ied = IncomingEmailDispatcher(fifo_path='/tmp/pyrisk.in')
-    oed = OutgoingEmailDispatcher(return_address='server@example.com')
-    players = [EmailPlayer('Alice', 'alice@big.edu', ied, oed),
-               Player('Bob'), Player('Charlie')]
+    players = [Player('Alice'), Player('Bob'), Player('Charlie')]
     e = Engine(world, players)
     e.run()
-    ied.close()
 
 if __name__ == '__main__':
     import sys