refactor(game): remove redundant colorToString logic for wild card types

- Eliminated unnecessary wild card handling in `Card::colorToString`.
This commit is contained in:
Kieran Kihn
2025-11-23 15:02:30 +08:00
parent 7300de3fe4
commit db69b399ec

View File

@@ -24,10 +24,6 @@ namespace UNO::GAME {
std::string Card::colorToString() const
{
switch (this->type_) {
case CardType::WILD:
case CardType::WILDDRAWFOUR: return "Wild";
}
switch (this->color_) {
case CardColor::RED: return "Red";
case CardColor::GREEN: return "Green";