diff --git a/src/card.rs b/src/card.rs index da0ec7d..951d350 100644 --- a/src/card.rs +++ b/src/card.rs @@ -36,6 +36,14 @@ impl Rank { } impl Card { + pub fn new(rank: Rank, suit: Suit) -> Self { + Self::PlayingCard { + deck: 0, + rank, + suit, + } + } + pub fn is_joker(&self) -> bool { matches!(self, Self::Joker(_)) }