Guess the number, the number has no repeated digits and all the digits are 5 or less (no 6-9). When a digit is yellow it means that it was in the number just in the wrong place. Black means it is in not in the number and green means it is in the number and in the correct place. Also press space to delete your number (you can't delete your third number, that is just chance)
Please note, THIS TOOK SO MUCH MATH, I FELT LIKE I WAS A GENIUS IN THE MIDDLE OF CODING THIS. Thanks to @PianoGirl1537 for some suggestions