fix: allowed moves infinite loop

This commit is contained in:
Henri Bourcereau 2025-01-26 17:52:57 +01:00
parent 38100a61b2
commit a103b6fb6a
7 changed files with 156 additions and 63 deletions

View file

@ -99,6 +99,14 @@ impl GameRunner {
};
}
}
if let Some(winner) = self.state.determine_winner() {
// panic!("WE HAVE A WINNER!");
next_event = Some(store::GameEvent::EndGame {
reason: store::EndGameReason::PlayerWon { winner },
});
}
next_event
}