wip to fix

This commit is contained in:
Henri Bourcereau 2025-01-28 21:15:26 +01:00
parent 2a67996453
commit 9182a07d83
7 changed files with 107 additions and 32 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
}