My daughter Zaza wanted to know what this programming thing was all about, so we are sloooooowly making a snake game.

    Our steps, in rough order:
  1. making green and red DIVs appear on the screen.
  2. manually controlling their positions with styles
  3. creating random numbers to feed into the apple position. Explaining basic variables and functions.
  4. writing that as a function we can call
  5. getting a keypress. Using that to make the snake move once.
  6. Explaining how to check if the snake and the apple are in the same position. explain IF/THEN/ELSE.
  7. What do we do if the snake hits a border?
  8. I'll write more if she's still paying attention at this point. 😀
I'm a snake!
I'm an apple!