Hi ,
I'm trying in last 3 days solving this tricky problem and printing the correct result sequence of the wheels numbers .
The problem is that Im having 7 wheels colored on same colors (white / red / green ...etc) but it's differently ordered and organized per the wheel which mean each wheel has different color order than the other wheels colors.
Here's the photo of wheels and the colors of each wheel: ( the wheels numbered from left to right as you see on the photo down )
Here's an example of what shall be the game output but it's not fully correct (not correct) since not all the 7 wheels have set on the table - 2 other wheels that left outside can't meet the game rule for same color on the tangent point of adjacent wheels:
but as you see here in this example it's not fully correct (considered not correct) since there's two other wheels left and can't meet the game rule where each tangent points of adjacent wheels that we've set on the table must be on same color. In addition we need that all the wheels set on the table with the game rule met.
Any idea how do I write any pseudocode or any approach on how do I solve this issue to write a function that output the sequence of the wheels numbers that I need to set on the table in order to meet the game rule ?
Need to assign what shall be the number of the middle wheel that we set on the table and what's the correct sequence for the wheels number to set in order to meet the game rule ?!
Thanks much for any help!