Ok, so I’ve been trying to solve this problem for awhile. My Simon game is in the works and I’m just stuck with a very strange issue. Hopefully somebody can help me out while trying to understand my code. Right now, I can turn on the device and start a game. All I want it to do right now is play the computer sequence, wait for the player to copy (so far it doesnt check if the play pressed the right buttons, just the same amount) and then add one to the sequence and do it again. The computer sequence is working, but every time its my turn, it runs the player sequence (on click) too many times. If anybody has the patience, try playing the game and open the console. I have it log “+1” every time it runs the player function, and youll see that instead of it adding one, it exponentially adds one (+1, +1+1, +1+1+1, etc). I’ve already have the player array resetting to empty before their turn. I don’t know what to do!! Thanks in advance to any patient coders who are willing to help!
- Jeff