We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Question: Generating all permutations of a diagram
Page Index Toggle Pages: 1
Question: Generating all permutations of a diagram (Read 615 times)
Question: Generating all permutations of a diagram
May 16th, 2005, 5:15am
 
Diagram:
A******B
**    **
* *  * *
*  **  *
*  **  *
* *  * *
**    **
C******D


I would like to make a program that generates all permutations of the above diagram, laid out in an 8-by-8 array, with variable diagram width and thusly image size.

I've made an attempt, using an integer-to-binary string deal, using an if statement of each character of the string to determine whether to draw a line or not, but.. I've gotten hung up. Any help would be appreciated. Thank you!
Page Index Toggle Pages: 1