diff --git a/source/__pycache__/crop_protection_product.cpython-311.pyc b/source/__pycache__/crop_protection_product.cpython-311.pyc new file mode 100644 index 0000000..d4e10b4 Binary files /dev/null and b/source/__pycache__/crop_protection_product.cpython-311.pyc differ diff --git a/source/__pycache__/ground.cpython-311.pyc b/source/__pycache__/ground.cpython-311.pyc new file mode 100644 index 0000000..440582a Binary files /dev/null and b/source/__pycache__/ground.cpython-311.pyc differ diff --git a/source/__pycache__/plant.cpython-311.pyc b/source/__pycache__/plant.cpython-311.pyc new file mode 100644 index 0000000..4dca0be Binary files /dev/null and b/source/__pycache__/plant.cpython-311.pyc differ diff --git a/source/__pycache__/tile.cpython-311.pyc b/source/__pycache__/tile.cpython-311.pyc index 2a1b0b4..afdea50 100644 Binary files a/source/__pycache__/tile.cpython-311.pyc and b/source/__pycache__/tile.cpython-311.pyc differ diff --git a/source/area/__pycache__/__init__.cpython-311.pyc b/source/area/__pycache__/__init__.cpython-311.pyc index ff938c7..a319c59 100644 Binary files a/source/area/__pycache__/__init__.cpython-311.pyc and b/source/area/__pycache__/__init__.cpython-311.pyc differ diff --git a/source/area/__pycache__/constants.cpython-311.pyc b/source/area/__pycache__/constants.cpython-311.pyc index 78daa34..fc5dca7 100644 Binary files a/source/area/__pycache__/constants.cpython-311.pyc and b/source/area/__pycache__/constants.cpython-311.pyc differ diff --git a/source/area/__pycache__/field.cpython-311.pyc b/source/area/__pycache__/field.cpython-311.pyc index 6fc2201..e78f0fe 100644 Binary files a/source/area/__pycache__/field.cpython-311.pyc and b/source/area/__pycache__/field.cpython-311.pyc differ diff --git a/source/area/__pycache__/tractor.cpython-311.pyc b/source/area/__pycache__/tractor.cpython-311.pyc index 14524f3..d57462a 100644 Binary files a/source/area/__pycache__/tractor.cpython-311.pyc and b/source/area/__pycache__/tractor.cpython-311.pyc differ diff --git a/source/main.py b/source/main.py index 3361f3a..2dac1b5 100644 --- a/source/main.py +++ b/source/main.py @@ -1,7 +1,13 @@ import pygame +import time +import random from area.constants import WIDTH, HEIGHT from area.field import drawWindow +from area.tractor import Tractor +from area.field import tiles +from ground import Dirt +from plant import Plant WIN = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption('Intelligent tractor') @@ -15,6 +21,19 @@ def main(): if event.type == pygame.QUIT: run = False + #small test: + time.sleep(2) + tile1 = tiles[0] + p1 = Plant('wheat', 'cereal', random.randint(1,100), random.randint(1,100), random.randint(1,100)) + d1 = Dirt(random.randint(1, 100), random.randint(1,100)) + d1.pests_and_weeds() + tile1.ground=d1 + t1 = Tractor(10, 10) + t1.work_on_field(tile1, d1, p1) + time.sleep(3) + print("\n") + + # in loop move tractor main()