games.clue.runner¶

Runner script for the Clue game.

This script demonstrates how to initialize and run a Clue game.

Functions¶

main()

Run the Clue game as a demonstration.

run_clue_game(player_names[, max_turns, num_ai_players])

Run a complete Clue game with the specified players.

Module Contents¶

async games.clue.runner.main()¶

Run the Clue game as a demonstration.

async games.clue.runner.run_clue_game(player_names, max_turns=20, num_ai_players=0)¶

Run a complete Clue game with the specified players.

Parameters:
  • player_names (list[str]) – Names of the players

  • max_turns (int) – Maximum number of turns

  • num_ai_players (int) – Number of AI players (the first n players will be AI)

Returns:

Final game state information

Return type:

dict[str, Any]