games.example¶

From typing import Any, Dict Haive Games Examples.

This file demonstrates comprehensive usage of the Haive Games framework, including quick starts, tournaments, custom games, and advanced patterns.

Functions¶

example_advanced_chess()

Example 2: Advanced game with custom engines - Chess.

example_custom_game()

Example 4: Creating a custom game - Number Guessing.

example_game_evaluation()

Example 5: Evaluating and comparing agents.

example_game_visualization()

Example 6: Visualizing game states.

example_game_with_observers()

Example 8: Games with observer pattern.

example_parallel_games()

Example 9: Running games in parallel.

example_poker_tournament()

Example 3: Multi-player tournament - Poker.

example_quick_game()

Example 1: Quick game setup - Tic Tac Toe.

example_save_and_load()

Example 10: Saving and loading game states.

example_wordle_with_strategy()

Example 7: Single player game with strategy - Wordle.

main()

Run all examples.

Module Contents¶

games.example.example_advanced_chess()¶

Example 2: Advanced game with custom engines - Chess.

Return type:

None

games.example.example_custom_game()¶

Example 4: Creating a custom game - Number Guessing.

Return type:

Any

games.example.example_game_evaluation()¶

Example 5: Evaluating and comparing agents.

Return type:

None

games.example.example_game_visualization()¶

Example 6: Visualizing game states.

Return type:

Any

games.example.example_game_with_observers()¶

Example 8: Games with observer pattern.

Return type:

None

games.example.example_parallel_games()¶

Example 9: Running games in parallel.

Return type:

Any

async games.example.example_poker_tournament()¶

Example 3: Multi-player tournament - Poker.

games.example.example_quick_game()¶

Example 1: Quick game setup - Tic Tac Toe.

Return type:

None

games.example.example_save_and_load()¶

Example 10: Saving and loading game states.

Return type:

None

games.example.example_wordle_with_strategy()¶

Example 7: Single player game with strategy - Wordle.

Return type:

None

games.example.main()¶

Run all examples.

Return type:

None