Created
October 21, 2019 04:43
-
-
Save IntegerMan/9e051c0e2ebe8a94d9e04c6984baa2d7 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 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