Spaces:
Sleeping
Sleeping
AttackingOrDefending commited on
Commit ·
d856fb5
1
Parent(s): 522f652
Fix man/max byoyomi (#14)
Browse files
model.py
CHANGED
|
@@ -26,7 +26,7 @@ class Challenge:
|
|
| 26 |
def is_supported_time_control(self, supported_speed, supported_increment_max, supported_increment_min, supported_byoyomi_max, supported_byoyomi_min, supported_base_max, supported_base_min):
|
| 27 |
if self.increment < 0:
|
| 28 |
return self.speed in supported_speed
|
| 29 |
-
return self.speed in supported_speed and supported_increment_max >= self.increment >= supported_increment_min and supported_byoyomi_max >= self.
|
| 30 |
|
| 31 |
def is_supported_mode(self, supported):
|
| 32 |
return "rated" in supported if self.rated else "casual" in supported
|
|
|
|
| 26 |
def is_supported_time_control(self, supported_speed, supported_increment_max, supported_increment_min, supported_byoyomi_max, supported_byoyomi_min, supported_base_max, supported_base_min):
|
| 27 |
if self.increment < 0:
|
| 28 |
return self.speed in supported_speed
|
| 29 |
+
return self.speed in supported_speed and supported_increment_max >= self.increment >= supported_increment_min and supported_byoyomi_max >= self.byoyomi >= supported_byoyomi_min and supported_base_max >= self.base >= supported_base_min
|
| 30 |
|
| 31 |
def is_supported_mode(self, supported):
|
| 32 |
return "rated" in supported if self.rated else "casual" in supported
|