Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Simon Game- where to start?

I want to build a simon game, but I am not really sure where to start(using jQuery).

I have a rough idea that I need to create a random number and choose a color with it, then I need to have two arrays----1) for the comp to store the values and 2) for the user's input. If they match proceed to the next round otherwise restart.

I just don't know how do I put all this in code with the colors and sounds and need to change the color as well when a particular button is pressed(may be change the opacity).

1 Answer

Steven Parker
Steven Parker
243,228 Points

I like your ambition. :+1:

Try doing what some of the instructors do in the videos, create a framework of major functions filled only with comments. Build your program first by describing what has to happen, and breaking it down into functions and data. As you get more detailed, start replacing the comments with code. Keep the JQuery API documentation page handy, and search it to find methods that do what you need.

If you're not quite ready to tackle this task on your own, you might enjoy the interactive Simon Says Hour of Code project at Code Craft School.

It's also available from CodePlanet as a GitHub project.

Thanks a lot, I will start working on it.