mirror of
https://github.com/kristoferssolo/2048.git
synced 2026-02-04 14:02:03 +00:00
feat(game): add Direction enum
This commit is contained in:
8
src/py2048/utils.py
Normal file
8
src/py2048/utils.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class Direction(Enum):
|
||||
UP = (0, -1)
|
||||
DOWN = (0, 1)
|
||||
LEFT = (-1, 0)
|
||||
RIGHT = (1, 0)
|
||||
Reference in New Issue
Block a user