mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
refactor(game): simplify GameState construction and initialization
- Removed `GameStatus` dependency from `GameState` constructors. - Adjusted `ClientGameState` and `ServerGameState` constructors accordingly. - Simplified `ServerGameState::init()` to handle card initialization and player actions. - Updated tests to reflect these changes.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
TEST(game_state_test, game_state_test_1)
|
||||
{
|
||||
UNO::GAME::ClientGameState clientGameState(UNO::GAME::GameStatus::WAITING_PLAYERS_TO_NEXT_TURN, std::string("lzh"));
|
||||
UNO::GAME::ClientGameState clientGameState(std::string("lzh"));
|
||||
|
||||
UNO::GAME::ClientPlayerState playerState1("pkq", 100, false);
|
||||
UNO::GAME::ClientPlayerState playerState2("kpq", 100, false);
|
||||
|
||||
Reference in New Issue
Block a user