Created
October 6, 2019 03:17
-
-
Save IntegerMan/ce13f031d8502902bfba178d706c74da 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
module MattEland.FSharpGeneticAlgorithm.Logic.Actors | |
open MattEland.FSharpGeneticAlgorithm.Logic.WorldPos | |
type ActorKind = | |
| Squirrel of hasAcorn:bool | |
| Tree | |
| Acorn | |
| Rabbit | |
| Doggo | |
type Actor = | |
{ Pos : WorldPos | |
ActorKind : ActorKind } | |
let getChar actor = | |
match actor.ActorKind with | |
| Squirrel _ -> 'S' | |
| Tree _ -> 't' | |
| Acorn _ -> 'a' | |
| Rabbit _ -> 'R' | |
| Doggo _ -> 'D' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment