Please enable JavaScript to use CodeHS

Tic Tac Toe

In this project, students create their own game of Tic Tac Toe! Students will use data structures and graphics to make a two-player tic tac toe game.

Hard

7 Hours

High School

Project Description

In this project, students will be writing the game of tic tac toe in three steps. In part 1, students start by drawing the four lines that divide the grid into 9 squares.

In part 2, students add in mouse click events to draw X’s and O’s on the screen.


Finally, in part 3, students will add logic to determine a winner.

Project Demo

Explore this program before assigning it!

Project Overview

Here is an outline of the project activities: