In this game play example, we will look at Level 6.
I originally designed Treasure Code around this difficulty level: with 8 colors and 6 gems in the combination, it makes for a good challenge, while keeping it sane.
I'll try to use fewer screenshots in this walkthrough, since it will prove a long one!
In this screenshot, I've gone ahead and submitted my first guess, using the suggested set of colors.
I got [/,/] meaning two of the colors are in the combination but in the wrong spot.
That also means 4 of the colors in the first guess are
not in the combination, so this is a lot of information for a first guess.

As my second guess, I chose [r,o,v,v,v,v] and got [X,/].
Here I used the fact that the first guess had no strikes to my advantage:
Since I again chose red and orange for the first two spots (as they are in the first guess), they can only have contributed to the spare in the result from guess 2.
So, the strike must come from one of the violet gems in positions 3-6.
We don't know which position violet is in yet, but that's a good piece of information to have.
Guess 3: [-,r,r,r,v,v]. Notice that I used a blank here. In this case it is mostly for emphasis, but using blanks can be very helpful (pressing backspace / delete clears out a gem).
The result was [/,/].
If we compare this to the result from our previous guess, the most obvious change is that the strike is gone. Since we determined earlier that one of the violet gems was responsible for the strike in guess 2, you can conclude that we moved the violet gem from its correct spot with our 3rd guess:
A violet gem must therefore be in position 3 or 4.

To find out which one, we use our fourth guess: [r,r,v,r,r,r].
Why do we use red instead of using blanks?
By putting red everywhere else we are also testing something else out: whether red exists in the combination.
As it turns out, the answer is no: there is only one spare, which has to be due to the violet gem being in the wrong spot.
 |
| "There are no red gems" |
That means:
1. There are no red gems.
2. A violet gem is in the 4th spot
I proceeded to mark this information at that time.
Also:
3. There are exactly two violet gems (since guess 3 had two spares and none of those could have come from the red gems)
4. Two violet gems means there are also no orange gems (since guess 2 had a strike and a spare, which had to come from the two violet gems)
5. There is a violet gem in either position 1 or 2 (since the strike in guess 2 was the violet in the 4th spot, and the spare means the other violet gems are in the wrong spot)
Our fifth guess verifies some of our knowledge.
Two strikes means we were right about a violet gem in position 4, and one in position 1 or 2.
Notice that I hadn't yet realized the 4th point (that there are no orange gems), since I could have used that knowledge to try green gems instead of orange gems to get information on the number of green gems in the combination.
For my 6th guess, I try [y,v,p,v,y,y]. Since I know from guess 1 that yellow is not in position 3, I put a yellow gem in all other available positions 1, 5 and 6.
This means that if a yellow gem is present, it should provide a strike.
The pink gem in position 3 is a "feeler" guess, to see if we get lucky.
The result: [X,X,/], two strikes and a spare. Since the yellow gem would have had to provide a strike, it can't be part of the solution, and the pink gem is also not in position 3.
In other words:
6. There are no yellow gems, and there is at least one pink gem (not in position 3).
In my next guess, I use the same technique I used with the yellow gems but now with the teal gem:
Knowing that the teal gem (if present) is in not in position 5, I put my new "feeler" guess for the pink gem to that position.
Three strikes!
From 6), we know that there is at least one pink gem, which means there are no teal gems, and that the pink gem is correctly in position 5:
7. There are no teal gems.
8. There is a pink gem in position 5.
Our next guess locks in the three gems we know about and since we only don't know about three remaining gems, we can be a little more aggressive.
Since we don't know how many pink gems there are (we always just used one, there could be more), we can try one in the first or 6th position (we know already from guess 6 that a pink gem is not in the 3rd position). By putting a green gem into the remaining two spots we will also be able to find out how many green gems there could be and whether they are in the right spot.

We got 3 strikes and 2 spares!
Since we already have accounted for our three strikes, this means that the 2 spares are from the two green gems and the pink gem we added.
Advanced:
This also tells us that there is only one green gem and at least one more pink gem.
Rationale: Assuming there are two green gems and no pink gem means that both green gems are neither in position 1 or 3. But that would mean they would both be in position 6? Not possible.
Instead, we find out a pink gem isn't in position 6, and that a green gem isn't in positions 1 and 3.
9. A pink gem is in position 1 (since it wasn't in position 3, 6 and positions 2, 4 and 5 are accounted for).
10. A green gem is in position 6 (since it wasn't in position 1, 3 and positions 2, 4 and 5 are accounted for).
(As I was playing, I didn't realize 9), so my next guess could have been better...)
Looking back to guess number 1, we know there should be two colors within [r,o,y,g,t,b], since there were two spares.
Since we've ruled out red, orange, yellow and teal, we're left with green and blue from that initial guess.
So I tried a blue gem in position 1, which retrospectively has to be a spare (since a pink gem is in position 1 and we know there's at least one blue gem and there can't be two green gems).
Interestingly enough, if we put all the pieces together after our 8th guess, we should have been able to determine the combination from the information we collected (Hint: at least one blue, pink in position 1, green in position 6).
Since I hadn't quite done that, I proceeded with guessing [b,v,g,v,p,g] and getting 4 strikes and one spare.
At that point, I realized that there wasn't more than one green gem and therefore that the pink gem was indeed in position 1.
Lastly, I realized:
11. The blue gem was in the wrong position and needed to be in position 3
With that information we have our combo:
pink,violet,blue,violet,pink,green
To confirm...
So there you have it... level 6 completed within 10 tries in this case, with two more guesses to spare!