Simple tic-tac-toe game built using HTML, CSS, and JavaScript

Rules

Two players take turns: placing 'X' and 'O' marks in empty spaces on a 3x3 square grid.

Player with the 'X' mark starts first. The first player to place 3 marks in a vertical, horizontal, or diagonal row wins the game.

If all spaces are filled, the game ends in a draw.

Built With

Share this project:

Updates