mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
fix(game): remove redundant PlayerState::play call in GameState::play
- Eliminated unnecessary `PlayerState::play` method invocation to streamline card play logic.
This commit is contained in:
@@ -79,7 +79,6 @@ namespace UNO::GAME {
|
||||
|
||||
Card ServerPlayerState::play(const Card &card)
|
||||
{
|
||||
PlayerState::play(card);
|
||||
for (auto it = this->handCard_.getCards().begin();; it++) {
|
||||
if (it == this->handCard_.getCards().end()) {
|
||||
throw std::invalid_argument("Card not found in hand");
|
||||
|
||||
Reference in New Issue
Block a user