Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (solution[i].equals(colors[0][i]))
- {
- s = "1" + s;
- }
- else
- {
- for (int j = 0; j < 4; j++)
- {
- if (colors[0][j].equals(solution[j]))
- {
- inSolution = true;
- }
- }
- //close for loop and if statement
- if (inSolution)
- {
- s = s + "0";
- inSolution = false;
- }
- else
- {
- s = s + "2";
- }
- }
Add Comment
Please, Sign In to add comment