rummy 0.2.0

a crate for the card game Rummy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Contains the additional state for basic Rummy (of which there is none, but we must still implement it).

use crate::game::{
    state::VariantState,
    variants::basic::{rules::BasicRules, score::BasicScore},
};

/// Basic Rummy requires no additional state, so this is an empty struct.
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct BasicState {}

impl VariantState<BasicScore, BasicRules> for BasicState {}