Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 21, 2019 04:43
Embed
What would you like to do?
let performMove =
let actor = { actor with Pos = pos }
match actor.ActorKind with
| Squirrel _ -> { state with World={world with Squirrel = actor }}
| Tree -> { state with World={world with Tree = actor }}
| Acorn -> { state with World={world with Acorn = actor }}
| Rabbit -> { state with World={world with Rabbit = actor }}
| Doggo -> { state with World={world with Doggo = actor }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment