enums and goal fixes
This commit is contained in:
parent
1d9a07a7ce
commit
1783e2bb26
@ -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
|
||||||
|
|
||||||
|
|
||||||
# =============== #
|
# =============== #
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user