Color game

Demo

Color game demo

Discussion questions

  • How does the HTML need to change?

  • What is the basic sequence of events from when the page loads?

  • What are some things we need to be able to do in Javascript?

In your group, discuss these and write down your answers so you can share back to the class.

Working on your color game

  • Copy index.html to a new file color-game.html and script.js to color-game.js.

  • Set the src attribute of the <script> tag in color-game.html to color-game.js.

  • Make sure your browser is pointed at a URL ending in color-game.html.

  • Edit color-game.html and color-game.js.