FakeGameService
In-memory fake implementation of GameServiceImpl for testing purposes. Stores game states in memory rather than persisting to an actual storage backend. Useful for unit tests and scenarios where real storage is not available or desired.
Properties
Functions
Closes the service and releases any held resources. Should be called when the service is no longer needed.
Gets the name of the storage type being used by this service.
Checks if all required players have joined the game.
Loads the base game state from storage without game instance wrapping.
Runs a health check on the storage system to verify it's functioning correctly. Creates, reads, updates, and deletes a test game state.
Saves the final game state at the end of a game session. Handles cleanup and proper storage of winner information.
Saves only the board state and last player to storage. Used during gameplay to persist moves without modifying player information.