2023-03-07 12:28:13 +01:00
|
|
|
import pygame
|
2023-03-07 13:00:35 +01:00
|
|
|
import tractor
|
2023-03-15 19:58:49 +01:00
|
|
|
import screen
|
2023-03-07 12:28:13 +01:00
|
|
|
|
2023-03-15 19:58:49 +01:00
|
|
|
# pygame initialization
|
2023-03-07 12:28:13 +01:00
|
|
|
pygame.init()
|
|
|
|
|
2023-03-15 19:58:49 +01:00
|
|
|
# creating agent
|
2023-03-07 13:00:35 +01:00
|
|
|
myTractor = tractor.Tractor
|
2023-03-15 19:58:49 +01:00
|
|
|
|
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
|
2023-03-15 19:58:49 +01:00
|
|
|
# defines agent movement
|
|
|
|
tractor.movement(myTractor)
|
|
|
|
# screen visualisation
|
|
|
|
screen.set_screen(myTractor)
|
2023-03-07 12:28:13 +01:00
|
|
|
|
|
|
|
pygame.quit()
|