Crate rusty_chess_clock

Crate rusty_chess_clock 

Source

Modules§

times
utils

Structs§

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

Enums§

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

Traits§

Sleep
Sleep trait requires that implementors can sleep for a given duration.