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.
return failures
def random_game():
return failures
def random_game():
- from player.email import IncomingEmailDispatcher, OutgoingEmailDispatcher, EmailPlayer
- 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()
e = Engine(world, players)
e.run()
if __name__ == '__main__':
import sys
if __name__ == '__main__':
import sys