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:
@@ -30,7 +30,7 @@ impl Hand for Single {
|
|||||||
// Trivial implementation
|
// Trivial implementation
|
||||||
if self_abs == other_abs {
|
if self_abs == other_abs {
|
||||||
Footstool::Full
|
Footstool::Full
|
||||||
} else if self_abs == other_abs + 1 {
|
} else if self_abs == (other_abs + 1) % 52 {
|
||||||
Footstool::Half
|
Footstool::Half
|
||||||
} else {
|
} else {
|
||||||
Footstool::None
|
Footstool::None
|
||||||
|
|||||||
Reference in New Issue
Block a user