fix: allowed moves infinite loop
This commit is contained in:
parent
38100a61b2
commit
6478f5043d
8 changed files with 160 additions and 64 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue