mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2025-10-21 20:00:35 +00:00
20 lines
270 B
Python
20 lines
270 B
Python
from enum import Enum, auto
|
|
|
|
|
|
class Direction(Enum):
|
|
LEFT = -1
|
|
RIGHT = 1
|
|
DOWN = 1
|
|
UP = -1
|
|
|
|
|
|
class Rotation(Enum):
|
|
CLOCKWISE = 90
|
|
COUNTER_CLOCKWISE = -90
|
|
|
|
|
|
class GameMode(Enum):
|
|
PLAYER = auto()
|
|
AI_PLAYING = auto()
|
|
AI_TRAINING = auto()
|