dimar has asked for the wisdom of the Perl Monks concerning the following question:
What is a good way to output polyomino shapes in simple ascii (and in HTML tables, later on) using Perl?
I would like to provide a smallish integer (~ 10) to my script, and have it spit out all the possible polyominos that correspond to that integer in ascii. "Mastering Algorithms with Perl" gives some ideas, so the question is whats the best way to begin to approach this, directed graphs? matrices? seems like there's many ways to do this, any suggestions?
If you dont already know, polyominos are those little regular shapes that you see in games like "Tetris" and its numerous clones (you remember that?) I've seen lots of JAVA code and mathematical treatments of this subject, but have not seen any Perl (my preferred platform for polyomino pursuits).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Proliferating Pretty Polyominos with the Power of Perl
by Enlil (Parson) on May 20, 2004 at 07:25 UTC | |
by dimar (Curate) on May 20, 2004 at 07:31 UTC | |
|
Re: Proliferating Pretty Polyominos with the Power of Perl
by halley (Prior) on May 20, 2004 at 13:42 UTC | |
by dimar (Curate) on May 20, 2004 at 23:46 UTC |