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 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