wip to fix
This commit is contained in:
parent
2a67996453
commit
9182a07d83
7 changed files with 107 additions and 32 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