enums and goal fixes

This commit is contained in:
s452645 2021-04-17 16:45:20 +02:00
parent 1d9a07a7ce
commit 1783e2bb26
2 changed files with 8 additions and 8 deletions

View File

@ -37,16 +37,16 @@ SCREEN = pygame.display.set_mode(
class Direction(Enum):
UP = 1
LEFT = 2
RIGHT = 3
DOWN = 4
UP = 0
RIGHT = 1
DOWN = 2
LEFT = 3
class Action(Enum):
ROTATE_LEFT = 1
ROTATE_RIGHT = 2
GO = 3
ROTATE_LEFT = 0
ROTATE_RIGHT = 1
GO = 2
# =============== #

View File

@ -4,7 +4,7 @@ from typing import List, Set
from project_constants import Direction, Action
# temporary goal for testing
GOAL = (10, 10)
GOAL = (9, 9)
class State: