Crate rusty_chess_clock
Source - times
- utils
- ChessClock
- The chess clock.
- Clock
- A simple clock that can be started and stopped
- DurationDisplay
- Wrapper class for Duration to implement Display, automatically convert
- Rules
- Represents the rules for the chess clock: the time for each player,
the increment, the starter and the timing method
- ClockMode
- ClockMode records whether the clock should count up or down.
- ClockState
- ClockState records whether the clock is running or stopped, and the time at
which it was last started if it is running.
- Player
- Status
- Represents the status of the ongoing game
- TimingMethod
- Represents the timing method used for the chess clock
- Sleep
- Sleep trait requires that implementors can sleep for a given duration.