classifier: todo on consecutive_ranks regarding loop-around straights

This commit is contained in:
2026-04-01 01:04:30 +01:00
committed by oreodave
parent 8c8e030071
commit 2d5193c69e

View File

@@ -173,6 +173,8 @@ fn match_suit(cards: &[Card]) -> bool {
}
fn consecutive_ranks(num_jokers: i32, cards: &[Card]) -> bool {
// TODO: allow straights where Ace or 2 are the first members (loop-around
// straights).
let mut num_jokers = num_jokers;
for i in 0..(cards.len() - 1) {
let r1 = cards[i].rank().unwrap() as i32;