Thread: Solving colors wheels problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2022
    Posts
    5

    Solving colors wheels problem

    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 )

    Solving colors wheels problem-gamedetails-jpg


    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:
    Solving colors wheels problem-example-jpg
    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!
    Last edited by Ajeet Viyana; 05-21-2022 at 06:30 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 01-06-2013, 07:49 AM
  2. Simplifying Numerical Solving before actual solving
    By Vespasian in forum Tech Board
    Replies: 3
    Last Post: 10-14-2012, 11:39 AM
  3. Need help in solving this problem
    By lokachari in forum C Programming
    Replies: 7
    Last Post: 10-27-2009, 07:32 PM
  4. Relation between material colors and light colors.
    By indigo0086 in forum Game Programming
    Replies: 3
    Last Post: 04-18-2007, 03:20 PM
  5. Alloy wheels, (car).
    By adrianxw in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 05-14-2005, 05:24 AM

Tags for this Thread