On the Subject of Very Annoying Puzzle
Sounds easy, yet still... Wait, this doesn't sound easy.
- Initially, the module will have 16 buttons with numbers in range of 0-65535.
- There will be 2 stages. First stage will have numbers. Second stage will have colors instead of numbers. Hover over the button to get hexcode of its color.
- Press the buttons in ascending order of their points. If two or more buttons have the same amount of points, press them in any order.
- After completing two stages, module will be solved.
- After pressing wrong button a strike will be given and current stage will reset.
Stage 1
To calculate amount of points of given number, convert its number to base-2 and add up all individual digits.
Stage 2
To calculate amount of points of given color, sum up hue, saturation and value of complementary color. To do this:
- Subtract your hexcode from #FFFFFF. From now on "your color" will mean this color, not the color of button.
- Calculate these 3 variables: max = max(R,G,B), min = min(R,G,B), delta = max - min.
- Hue:
If delta = 0, Hue = 0, else:- If max = R, Hue = (60*(G-B)/delta)%360.
- If max = G, Hue = (60*(B-R)/delta+120)%360.
- If max = B, Hue = (60*(R-G)/delta+240)%360.
- Saturation: if max = 0, Saturation = 0. Else, Saturation = 255 * delta / max.
- Value = max.
It is highly recommended to not use any converters. Module may lose some points due to rounding. After any operation that yields non-integer answer, drop the non-integer part.