Skip to content

Commit af7a636

Browse files
committed
Refactor DIRECTIONS with comments for readibility
1 parent 6714e2e commit af7a636

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

graphs/a_star.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from __future__ import annotations
22

3-
# the actions we can take
4-
# go up # go left # go down # go right
5-
DIRECTIONS = [[-1, 0], [0, -1], [1, 0], [0, 1]]
3+
DIRECTIONS = [[-1, 0], [0, -1], [1, 0], [0, 1]] # left # down # right # up
64

75

86
# function to search the path

0 commit comments

Comments
 (0)