Day11
Copyright(c) Eric Mertens 2021
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2021/day/11

Simulating a sea of octopuses that flash when they get excited.

Synopsis

Documentation

main :: IO () Source #

>>> :main
1585
382

simulate :: Map Coord Int -> [Int] Source #

Initial grid state to flashes per step

step :: Map Coord Int -> Map Coord Int Source #

Advance the state of the world one time step

excite :: Map Coord Int -> Coord -> Map Coord Int Source #

Excite an octopus at the given location