Created
October 21, 2019 04:56
-
-
Save IntegerMan/103c58cda354f3e32eb09854b5b425ef 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 handleDogMove state otherActor = | |
if otherActor.ActorKind = Rabbit then | |
{state with World = {world with | |
Rabbit = {world.Rabbit with IsActive = false} | |
Doggo = {world.Doggo with Pos = pos} | |
}} | |
else | |
{state with SimState = Lost; World = {world with | |
Squirrel = {world.Squirrel with IsActive = false} | |
Doggo = {world.Doggo with Pos = pos} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment