Copyright | (c) Eric Mertens 2017 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
:: (Status -> Status) | update rule |
-> Int | iterations remaining |
-> Int | infection counter |
-> Coord | facing direction |
-> Coord | current location |
-> Map Coord Status | world map |
-> Int | infections caused after given iterations |
Run the world simulation for a specified number of iterations. Returns the number of infections caused by the virus carrier.