I have to calculate the number of total permutations that are possible to obtain from a set of objects (position of balls), excluding some results.
The problem The main 'object' is a set of 2 balls that are connected by a string (so it forms a single object), both balls are green (the color is not important for this exercise, but I comment it to help to visualize the scene easier). This first object is always constant. The balls are in the same position. So it doesn't change.
The second object is the same, but this second object changes. It's also composed of 2 balls, but different color (I repeat, the color is not important. I use colors to help to visualize better the problem). The change that happens is that blue or red ball varies its position respect the 2 green balls.
What I want to calculate I want to calculate all the possible permutations that are possible to obtain while varying the second object (blue/red balls pair) respect to the first object (green balls pair). But with some rules...
Mainly, I want to know HOW to solve this problem because in the future it will be harder. This is the easier example that I could imagine. An example of this problem resolved will be also very useful.
So, the first object (couple of green balls) is always static. Never changes. The second object changes, but the red ball has the same or higher value than the blue ball (the red ball never is lower than the blue ball).
The blue or red ball can adopt 5 different values as maximum. While red ball is at the same level or above the blue ball.
An example of some permutations that fulfill the requirements: Video showing some pictures to visualize the problem easier.
https://i.gyazo.com/291455e70dce6771c6ac35e4e3041464.jpg
– Richard Steele Aug 03 '17 at 16:19