My self-imposed Codecademy graduation exam

Codecademy logo

I've always wanted to teach myself how to code but never found good teaching material... until I found Codecademy.Codecademy is a slick, fun, & easy way to learn to program.  They currently offer courses in JavaScript, HTML, and CSS so I took them.My main complaint was that it is a little too structured. They guide you through the exercises step-by-step. So I wasn't quite sure how I would do without the training wheels. Plus, I feared that if I didn't use it right away, I'd lose everything I'd learned.So I decided that the best way to prove to myself that I really did get it and to lock in everything I had learned was to come up with a challenge and that challenge was Minesweeper.You remember Minesweeper.  This addictive little game shipped with every version of Windows since Windows 3.1 came out in 1992.  I shudder to think how much time that game sucked up....Minesweeper was simple enough that I was pretty sure I could handle it with just JavaScript but complicated enough to be challenging, especially the part where it calculates all the mines in surrounding cells and, if there are none, proceeds to check those cells as well.So without further ado, here it is.If you find bugs or have any feedback on how I coded this, I want to learn so please comment below.Note: The (free) hosting service I am using is a bit slow so it may take a few seconds to generate your playing field.  There's probably a more efficient way to generate the playing field but this works... and that's good enough for me. :-) Now on to JQuery....

Previous
Previous

PeopleHunt: What Do You Do If The Gatekeeper Doesn't Feel Your Customer's Pain?

Next
Next

Wizpert: Is There Demand for Experts On-Demand?