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