let decreaseTimer (state: GameState) = | |
if state.SimState = Simulating then | |
if state.TurnsLeft > 0 then | |
{state with TurnsLeft = state.TurnsLeft - 1} | |
else | |
{state with TurnsLeft = 0; SimState = Lost} | |
else | |
state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment