mark points
This commit is contained in:
parent
f61d2044f8
commit
dff9f7f3e1
3 changed files with 12 additions and 5 deletions
|
|
@ -448,7 +448,10 @@ impl GameState {
|
|||
}
|
||||
|
||||
fn mark_points(&mut self, player_id: PlayerId, points: u8) {
|
||||
todo!()
|
||||
self.players.get_mut(&player_id).map(|p| {
|
||||
p.points = p.points + points;
|
||||
p
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue