From 1783e2bb26ef72dca58162e6e07f94ccdaf2e804 Mon Sep 17 00:00:00 2001 From: s452645 Date: Sat, 17 Apr 2021 16:45:20 +0200 Subject: [PATCH] enums and goal fixes --- project_constants.py | 14 +++++++------- searching_algorithms/bfs.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/project_constants.py b/project_constants.py index 655de4d..b9d80d1 100644 --- a/project_constants.py +++ b/project_constants.py @@ -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 # =============== # diff --git a/searching_algorithms/bfs.py b/searching_algorithms/bfs.py index a81897f..6186611 100644 --- a/searching_algorithms/bfs.py +++ b/searching_algorithms/bfs.py @@ -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: