Please review my Simon Game

Please review my Simon Game
0

#1

Hello all! I’ve been working on my Simon project for awhile now, and I think that I’ve hit a wall. I keep thinking of different ways to handle the problems, and I’m having to resist the urge to tear it down and rebuild it (again). I decided to just go ahead and publish it and get some feedback from the community. Any suggestions for improvements before I submit it? The code isn’t as clean as I would like it to be, but I think that getting some feedback is important before I do any further refactoring. Thank you in advance for taking the time to look at it!

http://www.zackward.net/projects/simon/

Zack Ward


#2

I’m seeing this error in the console

SyntaxError: Unexpected identifier ‘gameElements’

and it seems to prevent me from starting the app. I can click on Power, but everything else is unresponsive.


#3

@PortableStick Are you still seeing this error? If so, what browser/OS are you using? Thank you in advance!


#4

I sure am. I’m using the latest Safari.


#5

@portableStick Hmmmm, strange. It’s working fine on Chrome/Win10. Are you on iOS or Mac?


#6

Mac. Safari is a bit behind when it comes to ES6. Are you using any newer language features?


#7

That’s probably it. I should use babel to transpile it all to es5. I’ll give that a shot.


#8

@PortableStick Hmmm, I just changed “let” to “var”, I think that was the only es6 keyword in the file. Could you give it another shot?


#9

Works now, and everything is great!


#10

Fantastic! Thank you for the feedback!