apologiesserver.demo

Implements a quick’n’dirty game-playing client as a demo.

Because this is part of the apologiesserver codebase, it can use all of the interface classes. That greatly simplifies the implementation. But, the entire demo takes place over a network connection, so it is a real test of the websockets server.

See also: the TestGame class in test_manager.py, which implements a similar flow of control synchronously against the internal manager interface. If you need to debug something, that’s probably easier to work with.

Module Contents

apologiesserver.demo.log
apologiesserver.demo.demo(host: str, port: int) None

Run the demo.