ca-patterns-0.2.0.0: Manipulate patterns in cellular automata, create and parse RLE files
Safe HaskellNone
LanguageHaskell2010

Data.CA.List

Synopsis

Documentation

withDimensions Source #

Arguments

:: Int

h

-> Int

w

-> [Pattern] 

A list of every possible h by w pattern. This function is necessarily exponential in both arguments, so it's only practical if the dimensions are very small.

combinations Source #

Arguments

:: (Int, Int)

min and max vertical offset

-> (Int, Int)

min and max horizonal offset

-> Pattern 
-> Pattern 
-> [Pattern] 

Combine two patterns in multiple ways. Useful for creating a list of spaceship / still life collisions.

See combine.