apologies.demo

Implements a quick’n’dirty game-playing demo using curses.

Module Contents

apologies.demo.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) – Exit immediately when the game completes