Reprezentacja_wiedzy #1

Merged
s481838 merged 6 commits from Reprezentacja_wiedzy into master 2024-03-26 00:23:07 +01:00
Showing only changes of commit 1d713864f3 - Show all commits

View File

@ -13,7 +13,7 @@ class Plant:
if (water >= self.water_requirements) and (nutrients >= self.nutrients_requirements): if (water >= self.water_requirements) and (nutrients >= self.nutrients_requirements):
i = random.randint(5, 12) i = random.randint(5, 12)
if self.growth_level+i > 100: if self.growth_level+i > 100:
i = self.growth_level - 100 i = 100 - self.growth_level
self.growth_level += i self.growth_level += i
# more properties # more properties