feat: initial handler structures for player steps

This commit is contained in:
2026-03-15 11:15:18 -03:00
parent 9f22304dd8
commit 4c8cbc821d
4 changed files with 28 additions and 23 deletions

View File

View File

@@ -0,0 +1,17 @@
from diceplayer.config.player_config import RoutineType
from diceplayer.state.state_model import StateModel
class OptimizationHandler:
@staticmethod
def run(state: StateModel, current_cycle: int) -> StateModel: ...
@staticmethod
def _fetch_current_routine(state: StateModel, current_cycle: int) -> RoutineType:
if state.config.type != RoutineType.BOTH:
return state.config.type
if current_cycle < state.config.switch_cyc:
return RoutineType.CHARGE
return RoutineType.GEOMETRY