Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 21, 2019 05:25
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