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): class Direction(Enum):
UP = 1 UP = 0
LEFT = 2 RIGHT = 1
RIGHT = 3 DOWN = 2
DOWN = 4 LEFT = 3
class Action(Enum): class Action(Enum):
ROTATE_LEFT = 1 ROTATE_LEFT = 0
ROTATE_RIGHT = 2 ROTATE_RIGHT = 1
GO = 3 GO = 2
# =============== # # =============== #

View File

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