apologies.demo_unix¶
Implements a quick’n’dirty game-playing demo using curses.
Module Contents¶
- exception apologies.demo_unix.TerminalSizeError(msg)¶
Bases:
ExceptionCommon base class for all non-exit exceptions.
- msg¶
- apologies.demo_unix.run_demo(*, players: int, mode: apologies.game.GameMode, source: apologies.source.CharacterInputSource, delay_sec: float, exit_immediately: bool) None¶
Run the quick’n’dirty demo in a terminal window.
- Parameters:
players (int) – Number of players in the game
mode (GameMode) – The game mode
source (CharacterInputSource) – The source to use for choosing player moves
delay_sec (float) – The delay between turns when executing the game
exit_immediately (bool) – If True, exit immediately when the game is complete