modes:mod: Hand trait

Any hand from any round mode has a chance of footstooling another hand
from that same mode.  This trait (Hand) allows us to implement these
semantics (as well as any other shared semantics) for each round mode.
This commit is contained in:
2026-04-02 05:25:17 +01:00
committed by oreodave
parent 9059047c79
commit 44d8e4eba0

View File

@@ -1 +1,13 @@
mod pair;
mod single; mod single;
#[derive(Eq, Ord, PartialEq, PartialOrd, Debug, Copy, Clone)]
pub enum Footstool {
None,
Half,
Full,
}
pub trait Hand {
fn footstool(&self, other: Self) -> Footstool;
}