Open rygulam opened 2 years ago
How to fix the yellow when already green problem AND the multiple letters per word problem at once. Keep track of green letters with a counter. When making a letter yellow, just check how many total times that letter appears in the word. If that letter was already green for each time it appears in word, don't make yellow. If not reached yet amount, that means the letter appears elsewhere and you can safely make it yellow as well.