Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 6, 2019 03:20
Embed
What would you like to do?
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