src.modules.backend.stats_manager
Module for managing game statistics and history.
Classes
|
Handles game statistics and history storage/retrieval. |
- class src.modules.backend.stats_manager.StatsManager(history_file='game_history.json', event_bus=None)[source]
Handles game statistics and history storage/retrieval.
- notify(event)[source]
Called when a relevant event occurs.
- Parameters:
event – The event that occurred
- search_games(game_id=None, won=None, target_word=None, max_attempts=None)[source]
Search for games matching specific criteria.
- Parameters:
- Return type:
- Returns:
List of matching game records