Lseed.Mainloop
Description
This module contains a runner for a an Lseed garden. It can be passed an observer that will receive the results.
- lseedMainLoop :: Bool -> Observer -> GardenSource -> Integer -> IO ()
Documentation
Arguments
| :: Bool | Run in real time, e.g. call |
| -> Observer | Who to notify about the state of the game |
| -> GardenSource | Where do get the plant code from |
| -> Integer | Maximum days to run |
| -> IO () |
Lets a garden grow for the given number of days, while keeping the observer informed about any changes.