UNO Card Game Implementation
The Problem: A Naive Approach
Let's start with a naive implementation of UNO card logic:
class UnoCard:
def __init__(self, color, value, is_wild=False):
self.color = color
self.value = value
self.is_wild = is_wild
def valid_to_play(card, top_card):
if