Tetromino

Author

Eric W. Weisstein
May 16, 2003

This notebook downloaded from http://mathworld.wolfram.com/notebooks/PointLattices/Tetromino.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/Tetromino.html.

©2005 Wolfram Research, Inc. except for portions noted otherwise

Initialization

<<LinearAlgebra`MatrixManipulation`
<<Graphics`Colors`
<<Polyomino`

Count

Length/@(polys=Polyominoes[4,Type->#]&/@{Free,OneSided,Fixed})

Enumeration

Free

PolyominoPlot[PolyominoArray[Polyominoes[4]]]

One-Sided

PolyominoPlot[PolyominoArray[Polyominoes[4,Type->OneSided]]]

Fixed

PolyominoPlot[PolyominoArray[Polyominoes[4,Type->Fixed],10]]

Array

Show[GraphicsArray[List/@
(PolyominoPlot[PolyominoArray[Polyominoes[4,Type->#1],#3],DisplayFunction->Identity
PlotLabel->StyleForm[#2,FontFamily->"Times",FontSlant->"Italic"]]&@@@{{Free,"free",5},{OneSided,"one-sided",7},{Fixed,"fixed",10}})
]]