There's 1 color and 1 color .
Excellent!
The code is:
Let's do now a step-by-step analysis...
* The 3rd attempt, in addition to the 1st & 2nd attempt, shows that
and
are NOT in the code. Furthermore, it reveals that the code elements are
,
and
.
* The element of
is the 1st part of the code because of the following:
1) The 1st attempt shows that
isn't the 4th part of the code, because it is an
.
2) The 2nd attempt shows that 2 elements are
and 1 element is
. Let's suppose
is the
one and it doesn't belong to the 1st position. Then,
is the 2nd part and
is the 3rd part. But if both the 2nd and 3rd parts are occupied and
can't be 4th due to the 1st attempt, then
has to the the 1st part. So,
is indeed the 1st part and one of the two
belongs to it.
Code this far:
* The element of
occupies the 3rd part of the code because of the following:
1)
occupies the 1st part in the 3rd attempt which is a
because the 1st part belongs to
.
2) Since
is the
of the 3rd attempt,
is the
of the same attempt.
Code this far:
* The element of
occupies the 2nd part of the code too!
1) At the 2nd attempt,
is one of the
and
is the
because the 3rd place belongs to
.
2) So, at the 2nd attempt, the other
is
which occupies the 2nd place in addition to the 3rd.
Code this far:
* The element of
occupies the 4th part.
1) It belongs to the code for sure.
2) All the other places are already occupied.
Code solved: