Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
namespace MattEland.FSharpGeneticAlgorithm.ConsoleTestApp
open System
open MattEland.FSharpGeneticAlgorithm.Logic.World
module Display =
let printCell char isLastCell =
if isLastCell then
printfn "%c" char
printf "%c" char
let displayWorld (world: World) =
printfn ""
for y in do
for x in do
let char = world.GetCharacterAtCell(x, y)
printCell char (x = world.MaxX)
let getUserInput(): ConsoleKeyInfo =
printfn ""
printfn "Press R to regenerate or X to exit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment