Skip to content

Commit e41b688

Browse files
committed
add: movesのプリセットを追加した
1 parent 5017c63 commit e41b688

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
INF = 1 << 63
33
lowerlist = list("abcdefghijklmnopqrstuvwxyz")
44
upperlist = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
5+
MOVES1 = [(0, 1), (0, -1), (1, 0), (-1, 0)]
6+
MOVES2 = MOVES1 + [(1, 1), (1, -1), (-1, 1), (-1, -1)]
57

68
# コード

0 commit comments

Comments
 (0)