use i64 to avoid overflow
This commit is contained in:
@@ -405,6 +405,7 @@ where
|
|||||||
pub fn is_winnable(&self) -> Option<Vec<StateSnapshot<G>>> {
|
pub fn is_winnable(&self) -> Option<Vec<StateSnapshot<G>>> {
|
||||||
let mut state_moves = std::collections::HashMap::new();
|
let mut state_moves = std::collections::HashMap::new();
|
||||||
let mut state = self.clone();
|
let mut state = self.clone();
|
||||||
|
let mut i: u64 = 0;
|
||||||
while !state.is_win() {
|
while !state.is_win() {
|
||||||
// Continue existing iterator if it exists
|
// Continue existing iterator if it exists
|
||||||
let it = state_moves
|
let it = state_moves
|
||||||
|
|||||||
Reference in New Issue
Block a user