haive.games.dominoes.enhanced_example¶

Example runner for Dominoes game with enhanced Rich UI visualization.

Functions¶

demo_ui_features([delay])

Demonstrate UI features with a sample game state.

run_dominoes_game(agent[, delay, use_rich_ui])

Run a Dominoes game with visualization.

Module Contents¶

haive.games.dominoes.enhanced_example.demo_ui_features(delay=0.5)[source]¶

Demonstrate UI features with a sample game state.

Parameters:

delay (float) – Delay between demonstrations in seconds

haive.games.dominoes.enhanced_example.run_dominoes_game(agent, delay=1.2, use_rich_ui=True)[source]¶

Run a Dominoes game with visualization.

Parameters:
  • agent (haive.games.dominoes.agent.DominoesAgent) – Configured DominoesAgent

  • delay (float) – Delay between moves in seconds

  • use_rich_ui (bool) – Whether to use the enhanced Rich UI (vs. the basic UI)

Returns:

The final game state