.. _example_usage: Example ======= The following is a simple example of how to use the library to simulate a round of whist with some very basic bots (the source code for :ref:`example_strategy.py` and :ref:`printing_event_listener.py` is also included further below). .. literalinclude:: ../examples/print_one_round.py :caption: print_one_round.py :linenos: :language: py Sample output for this script would look something like: .. literalinclude:: example_output.pycon :caption: Sample output :language: pycon .. _example_strategy.py: .. literalinclude:: ../examples/example_strategy.py :caption: example_strategy.py :linenos: :language: py .. _printing_event_listener.py: .. literalinclude:: ../examples/printing_event_listener.py :caption: printing_event_listener.py :linenos: :language: py