L-seed-0.1: Plant growing programming game

Lseed.Mainloop

Description

This module contains a runner for a an Lseed garden. It can be passed an observer that will receive the results.

Synopsis

Documentation

lseedMainLoopSource

Arguments

:: Bool

Run in real time, e.g. call threadDelay

-> Observer

Who to notify about the state of the game

-> Integer

Maximum days to run

-> Garden ()

Initial garden state

-> IO () 

Lets a garden grow for the given number of days, while keeping the observer informed about any changes.