Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Gandalf

How many combinations?

This topic is 5809 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How many combinations is possible for a 3x3 square grid, if the center square always is the same and the grid can be rotated 90, 180 and 270 degree but not fliped horizontaly or verticaly? Example: This one: x - - - C - - - - is the sam as: - - x - C - - - - - - - - C - - - x - - - - C - x - - But this is diffrent: - x x - C - - - - How many combinations viewed on the whole? I don´t know if I have every one and if I miss someone my BIG if-switch get fucked up!

Share this post


Link to post
Share on other sites
Advertisement

Because no-one seems to understand my question, here is a
picture of all combinations I can think of:



Can you find more combinations?

Share this post


Link to post
Share on other sites
I can''t really do this for you right now but you should write a short dos program that calculates this for you.

---
My Site
Come join us on IRC in #directxdev @ irc.afternet.org

Share this post


Link to post
Share on other sites
Kylotan: It can´t be 256 combinations! You forget that I can rotate each square 90, 180 or 270 degree.

Share this post


Link to post
Share on other sites
You already made that diagram; that is exactly all the possible combinations. Make 3 copies of that diagram at 90'', 180'', and 270'' rotations, and you have every possible combination.

Share this post


Link to post
Share on other sites
OK, I know now (thanks to Kylotan) that it is 256 combinations,
but how much smaller can I make that number if I can rotate each square 90'', 180'' or 270 degree?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
There are 64 combinations, because the center square was ruled out and for all other squares there exists 4 symmetrical points (you can rotate them 4 times 90 degrees to come back to the original configuration).

I don''t know if the 64 you have found are the correct ones, but I think so. But anyway, there should be 64 combinations from which you can form all 256 combinations by using rotates of 90, 180 or 270 degrees.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!