return time controls

This commit is contained in:
ntr 2019-09-10 11:58:55 +10:00
parent f002e9e283
commit 759ac868dd

View File

@ -51,7 +51,7 @@ pub enum TimeControl {
impl TimeControl { impl TimeControl {
fn vbox_time_seconds(&self) -> i64 { fn vbox_time_seconds(&self) -> i64 {
match self { match self {
TimeControl::Standard => 10, TimeControl::Standard => 180,
TimeControl::Slow => 240, TimeControl::Slow => 240,
TimeControl::Practice => panic!("practice vbox seconds called"), TimeControl::Practice => panic!("practice vbox seconds called"),
} }
@ -59,7 +59,7 @@ impl TimeControl {
fn game_time_seconds(&self) -> i64 { fn game_time_seconds(&self) -> i64 {
match self { match self {
TimeControl::Standard => 10, TimeControl::Standard => 60,
TimeControl::Slow => 120, TimeControl::Slow => 120,
TimeControl::Practice => panic!("practice game seconds called"), TimeControl::Practice => panic!("practice game seconds called"),
} }