Simple Simon -- A Sequencing Specialist

Simple Simon -- A Sequencing Specialist
0

#1

Here is my Simon Game. Let me know what you think.


#2

Ello there,

Couple of things I’ve noticed in my first quick glance, if you press a wrong button and hit the power button as if to reset, it will wait a second and make a first move as if is starting a new game, but no button presses by the user will register (which it shouldnt anyway, as it is supposed to be in the off state).

You also have a problem similar to one I had, if a button comes up twice in a row, it may flash and/or only play the sound the first time. The sound issue might be due to the speed of playback being shorter than the time to play the sound itself. I’m not sure offhand what would make the flash not occur, without diving into your code.

Ill play around a lil more and see if I notice anything else.

Good Luck!


#3

I boosted your function teach() interval to 700ms and that seems to do the trick for both the light and sound in playback.
btw I noticed a line in your code I thought was cool

lightUp($("#" + pattern[i]));

I dont know why Im so surprised calling a jquery object in that way works but I’m stealing this technique :stuck_out_tongue:
I’d never heard of “@keyframes” or glow before either

one other problem I noticed was that if after guessing wrong I jump the gun and try to solve again before the replay is done it can stack multiple replays of the sequence on top of one another.

Good luck with everything!