From 4404305fe04d523eb8e3764b4421e2a53ade513f Mon Sep 17 00:00:00 2001 From: Szymon Komosinski Date: Mon, 29 Jun 2020 13:51:23 +0200 Subject: [PATCH] Fertilization decision tree --- main.py | 1 - tile.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 1dc1828..3b259fa 100644 --- a/main.py +++ b/main.py @@ -92,7 +92,6 @@ class Game: tile.w = 100 def add_day(self): - pg.time.delay(1000) self.day = self.day + 1 for tile in self.tiles: tile.w = tile.w - tile.wu diff --git a/tile.py b/tile.py index e3c81a8..e00bef3 100644 --- a/tile.py +++ b/tile.py @@ -11,6 +11,8 @@ class Tile: self.w = 100 self.wu = 0 + self.f = "OK" + def water_usage(self): if self.object == rose: self.wu = 30