This breaks detection of whether we're reset. We'll fix that in a
moment.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
for ust in &mut self.users {
ust.remaining = spec.initial_time();
}
+ // White is player Y, and they will ge to go first, so the clock
+ // will go from stopped to Y, and then later when it's X's turn
+ // X will get an extra per_move. Y therefore needs per_move too.
+ let y_remaining = &mut self.users[USERS[0]].remaining;
+ *y_remaining = *y_remaining + TVL::seconds(spec.per_move.into());
}
fn implies_running(&self, held: Option<PlayerId>) -> Option<User> {