Step 1

Clone the starter code:

git clone -b starter https://github.com/cs280fall20/tic-tac-toe.git

This lesson is designed as a coding exercise. It provides you with an opportunity to practice what we've covered so far, in particular JavaScript Control flow. Moreover, the implementation exhibits a modular structure that uses JavaScript functions. The latter will be covered in detail in the next module.

If you are lucky, you make mistakes and will have a chance to use the debugger as well!

The starter code contains three files:

  • index.html
  • style.css
  • script.js

We will review each in the following sections.