ya2 · news · projects · code · about

fail condition
[pmachines.git] / pmachines / scenes / scene_domino_box.py
index 663842b61dc23b8a1b19dcd9337276fa362faba9..2d162eb9e4a95fe42267f985a972bd29dcf2b263 100644 (file)
@@ -54,5 +54,5 @@ class SceneDominoBox(Scene):
                 'keep \5mouse_r\5 pressed to rotate an item')
         return txt
 
-    def _end_condition(self):
-        return all(itm.strategy.end_condition() for itm in self.items) and not self._paused
+    def _win_condition(self):
+        return all(itm.strategy.win_condition() for itm in self.items) and not self._paused