mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
refactor(game): remove redundant colorToString logic for wild card types
- Eliminated unnecessary wild card handling in `Card::colorToString`.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user