diff --git a/card_game/src/lib.rs b/card_game/src/lib.rs index b612980..20d92eb 100644 --- a/card_game/src/lib.rs +++ b/card_game/src/lib.rs @@ -135,7 +135,8 @@ impl Rank { } } } -/// An identifier which specifies the deck id, suit, and card value. + +/// A card which specifies the deck id, suit, and card value. /// 2 bits for deck ID /// 2 bits for suit ID /// 4 bits for card Value @@ -224,6 +225,7 @@ impl IntoIterator for Stack { } } +/// A pile is a stack of face down cards and a stack of face up cards. #[derive(Clone, Debug, Default, Eq, Hash, PartialEq)] pub struct Pile { face_down: Stack,