The number of red squares determine how many numbers/colors are correct and in the RIGHT spot. The number of white squares determine how many numbers/colors are correct and in the WRONG spot. More info: https://files.projectstem.org/Videos/mastermind_2018_how_to_play.mp4
Credit: https://scratch.mit.edu/discuss/topic/344793/?page=1#post-3478235