-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
- build-depends: base ^>=4.18
+ build-depends: base >=4.18
hs-source-dirs: app, src
default-language: Haskell2010
shiftBounds :: (Position, Position) -> Position -> (Position, Position)
shiftBounds (a, b) d = (a ^+^ d, b ^+^ d)
+take2Steps :: Grid -> (Position, Position) -> (Grid, Grid) -> (Grid, Grid)
take2Steps rocks bounds (boundary, old) = (boundary2 S.\\ old, new)
where boundary1 = takeSteps rocks bounds boundary
boundary2 = takeSteps rocks bounds boundary1