Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.