Compare commits

..

4 Commits

Author SHA1 Message Date
Dmitry Belan 9ae915a457 done 2026-07-01 13:47:41 +03:00
Dmitry Belan 930b3465a4 fix2 2026-07-01 13:47:33 +03:00
Dmitry Belan f358639881 fix 2026-07-01 13:47:27 +03:00
Dmitry Belan eaafccbb2e Implement grow method and harvest function 2026-07-01 13:47:20 +03:00
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -6,3 +6,12 @@ class FarmAgent:
@staticmethod
def get_manual():
return "Инструкция: pH 6.0"
def harvest(self):
ready = [c for c in self._module.cultures if c._stage == "Красный"]
return len(ready)
# TODO: fix this later
# DEBUG: проверить параметры
# FIXME: оптимизировать
+2 -2
View File
@@ -4,8 +4,8 @@ class BioCulture:
self._stage = "Зеленый"
def grow(self):
# Заглушка, которая вызовет конфликт
raise NotImplementedError("Рост не реализован в main!")
# Рабочий код вместо исключения
self._stage = "Красный"
class HydroponicModule: