Skip to content

Commit

Permalink
fix handler name resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Simone Pierazzini committed Nov 25, 2023
1 parent a026c2f commit af845f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tng/game/fsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class IllegalMove(ValueError):

class TNGFSM:
def apply(self, game: Game, move: Move) -> Game:
handler = getattr(self, f'{game.phase.value}_{move.param.move}')
handler = getattr(self, f'{game.phase.value}_{move.param.move.value}')

return handler(game, move.player, move.param)

Expand Down

0 comments on commit af845f0

Please sign in to comment.