modes:single:footstool: allow half footstools to loop

3 of Diamonds can now half-footstool 2 of Spades.  We need to fix
ordering to allow 3 of Diamonds to beat 2 of Spades specifically.
This commit is contained in:
2026-04-04 04:47:10 +01:00
committed by oreodave
parent df79488cec
commit e054921462

View File

@@ -30,7 +30,7 @@ impl Hand for Single {
// Trivial implementation
if self_abs == other_abs {
Footstool::Full
} else if self_abs == other_abs + 1 {
} else if self_abs == (other_abs + 1) % 52 {
Footstool::Half
} else {
Footstool::None