Write a program that prints the shapes of one-sided polyominoes.
Given input 4 (tetrominos), a sample output would be:
* * * *
* * ** ** ** *
** ** ** * * *** ****
You are not restricted with respect to orientation, ordering or layout as long as polyominoes are not connected and not duplicated. (E.g. you can print the shapes in a column rather than a row)
Provide code that inputs a number from 3 to 6 and outputs the one-sided polyominoes of that size. The expected number of polyominoes output are 2, 7, 18, and 60 for 3, 4, 5, and 6 as inputs respectively.
Shortest code wins, present your solution for number 4.