Code Breakers Answers
There are multiple ways of figuring out this game using logic and algebra (for those who aren't familiar with logic of algebra the second version is a way of talking someone through it)
Using Logic:
You click on the stone to change the color.
Push 'go' once you're ready to submit it, always start off the game by saying 'go' which means it will tell you how many reds you have.
If there are some red lines/white lines you know that there are some reds in there. A red line would mean there is a red stone in there somewhere that's in the correct spot. If you had a white line (or two ... ) then there are still red stones in there but they are in the wrong spot.
If you didn't have any white lines go on. if you had white lines
try rearranging them until all the white lines turn red.
Tip: while rearranging them take the number of white/red lines and add them together, then subtract that number from four and turn the number you got into white codestones.
Now that you know how many red stones you have, and you should know where they are, try this: keep all the red ones, that you know stay there, in the same spot and turn the rest white, or if you know there are no whites then move on to the next color.
Continue doing steps between 3 and 6 until you win.
How to do it #2 Explination
This is how to play, always start off by playing all reds ... 1 red line and 1 white line, that means two total reds, now, switch two colors to white (or what ever the next color in the order is), choose two (addition of the two lines)the number of white and red lines together, then subtract that number from 4 to get 2.
order: red ... ... red. Now there are just two more, knowing that none are white (because no other white/red lines appeared when you switch two to white), switch the two whites to the next color in order.
Now you know this order red ... green red, now you only need one more, lets change the wrong green one to, purple ... oh ... that wasn't it, lets try orange. Now you should know how to beat the game. It should only take you 5 out of 10 rounds to beat using this formula. OR try this formula!
Using Algebra:
Here we use algebra:
r - red lines
w - white lines
x - is the sum of the numbers
r (ex. 1)
+w (ex. 1)
------
x (answer is 2)
x - total from above question
y - answer you got in this question
4 - x (2) = y (2)
Therefore you take away y reds and turn them white.
If you get more red and white lines from using the white colored stones then do this.
x - number from above
m - more lines that you got
n- new answer
x (2, same as above)
+m (ex. 1)
--------
n (answer 3)
Then ...
n - answer from above
4 - n (3) = 1
So, you change one white to green, if the green isn't right, change it to the next color, then the next, keep going until it is done