Fix missing dispatchers in base.random_game EmailPlayer init.
authorW. Trevor King <wking@drexel.edu>
Fri, 26 Mar 2010 08:50:49 +0000 (04:50 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 26 Mar 2010 08:50:49 +0000 (04:50 -0400)
pyrisk/base.py

index 2a90281..295b27b 100644 (file)
@@ -791,7 +791,7 @@ def random_game():
     world = generate_earth()
     ied = IncomingEmailDispatcher(fifo_path='/tmp/pyrisk.in')
     oed = OutgoingEmailDispatcher(return_address='server@example.com')
-    players = [EmailPlayer('Alice', 'alice@big.edu'),
+    players = [EmailPlayer('Alice', 'alice@big.edu', ied, oed),
                Player('Bob'), Player('Charlie')]
     e = Engine(world, players)
     e.run()