Hmm, that's a lot better than what I had, but there's still some tinkering to be done... I noticed that the $remtok block always removed %gfnum from %numbers, I'm assuming it's supposed to be two %gfnums, two %gsnums, so on down the line. Even after making that switch, however, there's still some logical errors somewhere in it. Testing out 1223 right now, when I guess 1111, it tells me I have one correct and one out of place. Same number, guessing 2222, it tells me I have two correct and one out of place, guessing 3333, it tells me 1 correct and 0 out of place. The 3 seems to be the only one working, though I haven't figured out why yet. Progress is definitely good, though, and I do appreciate all your help. smile