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 2a9028173a298ec5ae2f9f022fbf41cdf8f621fa..295b27b1e3c69830313d8122c2f31ba5d2d9c823 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()