From 850bd0f8ee787af92ab168492769a08f33e56c64 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Tue, 19 May 2026 11:43:13 -0700 Subject: [PATCH] use i64 to avoid overflow --- card_game/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/card_game/src/lib.rs b/card_game/src/lib.rs index 1613142..3870ab6 100644 --- a/card_game/src/lib.rs +++ b/card_game/src/lib.rs @@ -405,6 +405,7 @@ where pub fn is_winnable(&self) -> Option>> { let mut state_moves = std::collections::HashMap::new(); let mut state = self.clone(); + let mut i: u64 = 0; while !state.is_win() { // Continue existing iterator if it exists let it = state_moves