UFO Project: Automatically Saying Guess Is Incorrect No Matter What

Hello - I have just about finished up the UFO Project but I am having some issues that I can not seem to get to the root of. I have cross referenced my coding to the solution and everything seems to match up, so I am sure its going to be a small syntax error I am making but still cant figure it out.

I’ve linked my code if anyone may be able to tell me where I am making the mistake here.

Hey there @ryan.hurley.btc :grinning:

Take a look at your what happens inside your if block on line 21 in main.cpp:

if (letter == codeword[i]) {
        answer[i] == letter;
        guess == true;
      }

It seems you are using the equality operator instead of the assignment operator.