Created
October 6, 2019 03:20
-
-
Save IntegerMan/90fb8f2a0a6a088b316dd64ed75d698e 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 getCharacterAtCell(x, y) (world:World) = | |
let actorAtCell = | |
world.Actors | |
|> Seq.tryFind(fun actor -> actor.Pos.X = x && actor.Pos.Y = y) | |
match actorAtCell with | |
| Some actor -> getChar actor | |
| None -> '.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment