Skip to content

Instantly share code, notes, and snippets.

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