Fertilization decision tree

This commit is contained in:
Szymon Komosinski 2020-06-29 13:51:23 +02:00
parent b9c8793a16
commit 4404305fe0
2 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,6 @@ class Game:
tile.w = 100 tile.w = 100
def add_day(self): def add_day(self):
pg.time.delay(1000)
self.day = self.day + 1 self.day = self.day + 1
for tile in self.tiles: for tile in self.tiles:
tile.w = tile.w - tile.wu tile.w = tile.w - tile.wu

View File

@ -11,6 +11,8 @@ class Tile:
self.w = 100 self.w = 100
self.wu = 0 self.wu = 0
self.f = "OK"
def water_usage(self): def water_usage(self):
if self.object == rose: if self.object == rose:
self.wu = 30 self.wu = 30