Jump to content
IGNORED

Math question: 3 x 8 = 24?


Random Terrain

Recommended Posts

If you divide the screen into three sections and have your program randomly select one of eight pieces for each section, how do you figure out how many combinations that is?

 

Is it as simple as 3 x 8 = 24? Or would there be more than 24 combinations?

 

 

 

Thanks.

Link to comment
Share on other sites

To calculate the total number of combinations you multiply the total number of states of each factor together.

 

So in your case its 8x8x8=512.

 

Much better than 24! :)

I knew there had to be more to it! Thanks!

 

I'm almost done with a 16 x 16 x 16 version, so I guess that's 4,096. :-o

Link to comment
Share on other sites

Can the pieces only be used once, or could the same piece show up in all 3 sections? If only once then it's 8 x 7 x 6.

Each section has 16 pieces that are different from the other sections and they are chosen at random:

 

http://www.atariage.com/forums/topic/186523-random-maze-test-2011/

 

The only limitation is that I added a little bit of memory so no section can display a piece twice in a row. For example, if piece 6 was the last middle piece used, piece 6 can't be displayed this time.

Edited by Random Terrain
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...