Spaces:
Running
Running
File size: 664 Bytes
bb3fbf9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from enum import IntEnum
class Phase(IntEnum):
"""Game phases within a turn (Rule 7).
Flow: MULLIGAN_P1 -> MULLIGAN_P2 -> ACTIVE -> ENERGY -> DRAW -> MAIN
-> LIVE_SET -> PERFORMANCE_P1 -> PERFORMANCE_P2 -> LIVE_RESULT
-> ACTIVE (next turn)
Note: SETUP (-2) is reserved for potential future use (pregame setup).
Games currently start directly at MULLIGAN_P1.
"""
SETUP = -2
MULLIGAN_P1 = -1
MULLIGAN_P2 = 0
ACTIVE = 1
ENERGY = 2
DRAW = 3
MAIN = 4
LIVE_SET = 5
PERFORMANCE_P1 = 6
PERFORMANCE_P2 = 7
LIVE_RESULT = 8
TERMINAL = 9
RESPONSE = 10
|