a little reminder to myself
This commit is contained in:
parent
e8236a7e4a
commit
8bc369c31c
@ -28,6 +28,7 @@ class GameLogic():
|
|||||||
# since every mark is checked, there's no need to go into
|
# since every mark is checked, there's no need to go into
|
||||||
# opposite directions, so, there is (0,1) but no (0, -1).
|
# opposite directions, so, there is (0,1) but no (0, -1).
|
||||||
# This twice decreases the amount of computation needed.
|
# This twice decreases the amount of computation needed.
|
||||||
|
# maybe TODO - Optimize even more by preventing repeated calculations.
|
||||||
directions = ((0, 1), (1, 0), (1,1), (-1, 1))
|
directions = ((0, 1), (1, 0), (1,1), (-1, 1))
|
||||||
for mark in markList:
|
for mark in markList:
|
||||||
for direction in directions:
|
for direction in directions:
|
||||||
|
Loading…
Reference in New Issue
Block a user