From 9590b1461f83f838aca45bad2d70da61c337c1f9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 26 Mar 2010 20:01:30 -0400 Subject: [PATCH] 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. --- pyrisk/base.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 -- 2.26.2