changelog

This commit is contained in:
ntr
2019-10-27 14:57:27 +11:00
parent d5764f0067
commit 45aad71939
2 changed files with 7 additions and 1 deletions
+7
View File
@@ -340,6 +340,13 @@ impl Instance {
pub fn finish(&mut self) -> &mut Instance {
self.phase = InstancePhase::Finished;
for player in self.players.iter() {
if player.score == Score::Win {
self.winner = Some(player.id);
}
}
self
}