From 44d8e4eba0d9d9da0fe19d5f046dbc87c72cf124 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 2 Apr 2026 05:25:17 +0100 Subject: [PATCH] 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. --- src/modes/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/modes/mod.rs b/src/modes/mod.rs index 2fdacdc..4b38077 100644 --- a/src/modes/mod.rs +++ b/src/modes/mod.rs @@ -1 +1,13 @@ +mod pair; 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; +}