You will recieve a black mark for every one of your guess pegs that matches a colour in the code and that is in the same place in your guess row as it appears in the code row.
You will recieve a white mark for any other pegs in your guess row that match colours in the code row but that are not in their correct position.