ya2 · news · projects · code · about

fail condition
[pmachines.git] / pmachines / scenes / scene_box.py
index c7abbc1e4fff1ddfe1a663885a3bac91e2794082..e928b8dbd839dff6d4f53c250090f18257938199 100644 (file)
@@ -41,5 +41,5 @@ class SceneBox(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