Oh, now I see.
Thank you for spelling it out. Sorry for making you have to explain it again. I would never have been able to make that connection on my own.
Here’s what I’ve done:
I went through the
$(".colorPad").click() function and did away with the
pad variable and opted instead to just use
if($(this).attr("id") === green.attr("id"))
that change caused a problem with
if ($(this).attr("id") === sequence[step]) because they are not of the same Type. As a quick fix, I opted to just use the less strict
==, and that feeeels sorta sloppy…??? I could’ve
toString()'ed it. Are you aware if one method is favored over the other?
I also attempted to implement
teach(pattern), but still no luck…thought???.
If you ignore that I still need to make Strict Mode a ‘thing’, It’s looking like I’m just one faulty
setTimeout() away from a full function Simon Game. Thanks, man!!!