IntelligentTractor/main.py

23 lines
489 B
Python
Raw Normal View History

2023-03-07 12:28:13 +01:00
import pygame
import tractor
import screen
2023-03-07 12:28:13 +01:00
# pygame initialization
2023-03-07 12:28:13 +01:00
pygame.init()
# creating agent
myTractor = tractor.Tractor
2023-03-07 12:28:13 +01:00
if __name__ == "__main__":
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
# defines agent movement
tractor.movement(myTractor)
# screen visualisation
screen.set_screen(myTractor)
2023-03-07 12:28:13 +01:00
pygame.quit()