Created
October 21, 2019 05:25
-
-
Save IntegerMan/d5170b10329dfd62b55aad8014101e47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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