While trying to get a good grasp of JavaScript/CSS, I decided to implement Snake.
This is what the final product looks like
You may try it out at the link below
http://www.meetup.com/codecrewny/
http://www.reddit.com/r/learn_js_in_seattle/comments/1tziaa/new_study_group_starting_january_2014/
While trying to get a good grasp of JavaScript/CSS, I decided to implement Snake.
This is what the final product looks like
You may try it out at the link below
While trying to get a good grasp of JavaScript/CSS, I decided to implement Mine Sweeper.
I tried to use the standard colors for the numbering and standard icons for mines/flag/unknown.
I’ve identified the 5 states that any particular cell could be and designed a finite state machine for one cell
This is what the final product looks like
You may try it out at the link below
http://code.fairmutex.com/projects/web/minesweeper/
What I learned?
Discovered classList
Try to avoid recursion unless the recurring depth is shallow and the worst case scenario is known.
Good explanation about performance (may contain outdated information).
https://www.youtube.com/watch?v=mHtdZgou0qU