From 47018b05d9b07c2994eacf9533bb694b574f4a77 Mon Sep 17 00:00:00 2001 From: v7eZ3t Date: Wed, 17 Mar 2021 01:02:20 +0100 Subject: [PATCH] basic_agent --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 2738811..526d98b 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ display = pygame.display.set_mode((DISPLAY_SIZE_HORIZONTAL, DISPLAY_SIZE_VERTICA # program name pygame.display.set_caption('Tryryryry') -game_over = False +working = True tractor_horizontal_location = TRACTOR_HORIZONTAL_LOCATION tractor_vertical_location = TRACTOR_VERTICAL_LOCATION @@ -25,10 +25,10 @@ board = Board.generate() color = BLACK clock = pygame.time.Clock() -while not game_over: +while working: for event in pygame.event.get(): if event.type == pygame.QUIT: - game_over = True + working = False if event.type == pygame.KEYDOWN: print(tractor_horizontal_location, " ", tractor_vertical_location) if event.key == pygame.K_LEFT and tractor_horizontal_location > 0: