3D Tic-Tac-Toe

Posted in:

Two players take turns placing spheres in three layers of 3x3 tic-tac-toe grids. When a win is detected, the winning moves are highlighted and the players can choose to play another game.

Why Build It?

I created this project to be an offline game for a coding after-school class I taught at the time. We had internet connectivity issues, and I needed a variety of activities to keep students busy. I was able to save the needed files locally on each computer, so a pair of students could share a screen and play 3D Tic-Tac-Toe together even though the computers could not connect to the school's WIFI. I really liked the way it turned out, so I've continued to add to it!

Future Updates

  • Add an option for other sized grids
  • Add "save" functionality using web cookies

Toolkits

  • Bootstrap
  • Bootstrap Icons
  • jQuery