Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
let moveRandomly state actor getRandomNumber =
let current = actor.Pos
let movedPos = getCandidates(current, state.World, false)
|> Seq.sortBy(fun _ -> getRandomNumber 1000)
|> Seq.head
moveActor state actor movedPos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment