From a9e9742d74870ce86fa0e624e5b9e7b61dcf10bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Cwojdzi=C5=84ski?= Date: Thu, 24 Mar 2022 20:35:10 +0100 Subject: [PATCH] Add field class --- field1.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 field1.py diff --git a/field1.py b/field1.py new file mode 100644 index 0000000..6e3fdb8 --- /dev/null +++ b/field1.py @@ -0,0 +1,13 @@ +class Tile: + def init(self, type, rowPosition, colPosition, status, isChecked): + self.type = type + self.rowPosition = rowPosition + self.colPosition = colPosition + self.status = status + self.isChecked = False + + def isAvaibleForHarvest(self, type): + self.type = type + + def checkTile(self): + self.isChecked = True -- 2.20.1