From 945fa1471826aba11cc6e8bc324a33efffa9cde1 Mon Sep 17 00:00:00 2001 From: Cezary Adamczak Date: Mon, 10 May 2021 14:41:06 +0200 Subject: [PATCH] Dodanie 'mapschema.py' --- mapschema.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 mapschema.py diff --git a/mapschema.py b/mapschema.py new file mode 100644 index 0000000..4cc5963 --- /dev/null +++ b/mapschema.py @@ -0,0 +1,27 @@ +def createField(): + field = [["soil", "soil", "soil", "soil", "soil", "soil", "rocks", "soil", "soil", "soil"], + ["soil", "soil", "soil", "soil", "soil", "soil", "rocks", "soil", "soil", "soil"], + ["soil", "soil", "soil", "soil", "soil", "road", "road", "road", "road", "road"], + ["rocks", "rocks", "rocks", "rocks", "soil", "road", "soil", "soil", "rocks", "soil"], + ["soil", "soil", "soil", "soil", "soil", "road", "rocks", "rocks", "soil", "soil"], + ["soil", "soil", "soil", "pond", "rocks", "road", "rocks", "soil", "soil", "rocks"], + ["rocks", "pond", "pond", "pond", "pond", "road", "rocks", "soil", "soil", "rocks"], + ["road", "road", "road", "road", "road", "road", "rocks", "soil", "soil", "soil"], + ["soil", "soil", "soil", "soil", "soil", "soil", "rocks", "soil", "rocks", "rocks"], + ["soil", "soil", "soil", "soil", "soil", "rocks", "soil", "rocks", "rocks", "soil"] + ] + return field + +def createPlants(): + field = [["wheat", "wheat", "wheat", "wheat", "wheat", "wheat", 0, "strawberry", "strawberry", "strawberry"], + ["wheat", "wheat", "wheat", "wheat", "wheat", "wheat", 0, "strawberry", "strawberry", "strawberry"], + ["wheat", "wheat", "wheat", "wheat", 0, 0, 0, 0, 0, 0], + [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], + ["wheat", "wheat", "wheat", "wheat", 0, 0, 0, 0, 0, 0], + ["wheat", "wheat", "wheat", 0, 0, 0, 0, "potato", "potato", 0], + [0, 0, 0, 0, 0, 0, 0, "potato", "potato", 0], + [0, 0, 0, 0, 0, 0, 0, "potato", "potato", "potato"], + ["strawberry", "strawberry", "strawberry", "strawberry", "strawberry", 0, 0, "potato", 0, 0], + ["strawberry", "strawberry", "strawberry", "strawberry", "strawberry", 0, 0, 0, 0, 0] + ] + return field