changelog
This commit is contained in:
parent
d5764f0067
commit
45aad71939
@ -2,7 +2,6 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
|
||||||
## [1.6.5] - 2019-10-27
|
## [1.6.5] - 2019-10-27
|
||||||
# Added
|
# Added
|
||||||
- Offering of draws
|
- Offering of draws
|
||||||
|
|||||||
@ -340,6 +340,13 @@ impl Instance {
|
|||||||
|
|
||||||
pub fn finish(&mut self) -> &mut Instance {
|
pub fn finish(&mut self) -> &mut Instance {
|
||||||
self.phase = InstancePhase::Finished;
|
self.phase = InstancePhase::Finished;
|
||||||
|
|
||||||
|
for player in self.players.iter() {
|
||||||
|
if player.score == Score::Win {
|
||||||
|
self.winner = Some(player.id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user