From: W. Trevor King Date: Sat, 27 Mar 2010 00:01:30 +0000 (-0400) Subject: Remove EmailPlayers from pyrisk.random_game X-Git-Tag: 0.1~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9590b1461f83f838aca45bad2d70da61c337c1f9;p=pyrisk.git Remove EmailPlayers from pyrisk.random_game 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. --- diff --git a/pyrisk/base.py b/pyrisk/base.py index 7ac8b66..1cdd30f 100644 --- a/pyrisk/base.py +++ b/pyrisk/base.py @@ -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