Creating a "Cell" class which I used to create individual "cell objects" which I assigned a ton of properties to: row#, col#, bomb t/f, # of adjacent bombs (another challenge in and of itself, btw), revealed t/f, and flagged t/f.In turn, dynamically creating an array of arrays to match the visual table.I created a function (with the help of Jim, of course) which parses the number from the ID on the table which converts it into a $ variable which basically appends rows/cols based on the number it grabs.Dynamically sizing the table when clicking a difficulty level. My biggest challenge with the CSS was figuring out the table styles (borders, td sizes, etc.) JavaScriptĪs this was my first time ever writing a functioning web app using JavaScript, it's not a big surprise that this section was by far the greatest challenge of the project for me. I still want to mess around with it a bit to get it perrrrfect (couldn't find the exact font used by MS). I had a lot of fun styling this to the old look of the Windows '95 desktop view. Not to mention, the gameboard itself is just a simple table. SWEEPER.?) Technologies UsedĪs you can see from the source code, the HTML is very concise, as most of the action happens in the JavaScript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |