Skip to content

Generating the free, one-sided, and fixed polyominoes in Haskell

License

Notifications You must be signed in to change notification settings

mpace965/polyominoes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polyominoes

Generates the free, one-sided, and fixed polyominoes in Haskell. Using an Inductive Algorithm as described on the wikipedia page.

Running

Built with Haskell2010 and Stack. To run, clone the repository and run

$ stack build
$ stack exec Polyomino

the executable file is built to: .stack-work/dist/x86_64-osx/Cabal-2.0.1.0/build/Polyomino/Polyomino or a similar directory depending on your system and cabal version

Documenting

To build the documentation

$ cabal configure --package-db=clear --package-db=global --package-db=$(stack path --snapshot-pkg-db) --package-db=$(stack path --local-pkg-db)
$ cabal haddock --executables

the documentation is then available at: dist/doc/html/Polyomino/Polyomino/index.html

Sample Output

$ stack exec Polyomino
Generate polyominoes of length: 4
Polyominoes of type {free, one-sided, fixed}: one-sided
■ □ □ □
■ □ □ □
■ □ □ □
■ □ □ □

□ □ □ □
■ □ □ □
■ □ □ □
■ ■ □ □

□ □ □ □
□ ■ □ □
□ ■ □ □
■ ■ □ □

□ □ □ □
■ □ □ □
■ ■ □ □
■ □ □ □

□ □ □ □
□ □ □ □
■ ■ □ □
■ ■ □ □

□ □ □ □
■ □ □ □
■ ■ □ □
□ ■ □ □

□ □ □ □
□ □ □ □
■ ■ □ □
□ ■ ■ □

About

Generating the free, one-sided, and fixed polyominoes in Haskell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published