Skip to content

This is a classic Tic Tac Toe game built using HTML, CSS, and JavaScript, designed for two players to take turns marking spaces in a 3x3 grid. The goal is to get three marks in a row—horizontally, vertically, or diagonally—before the opponent does.

Notifications You must be signed in to change notification settings

Fouad-Gabr/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

Overview:
This is a classic Tic Tac Toe game built using HTML, CSS, and JavaScript, designed for two players to take turns marking spaces in a 3x3 grid. The goal is to get three marks in a row—horizontally, vertically, or diagonally—before the opponent does.

Features:

  • Dynamic win detection logic to highlight the winner's row.
  • Reset functionality to start a new game without reloading the page.
  • Simple yet engaging user interface with CSS styling.

Technologies Used:

  • HTML: For the structure of the game board and layout.
  • CSS: For styling and enhancing the visual appearance of the game.
  • JavaScript: For game logic, including player turns, win detection, and board reset.

How to Play:

  1. Open the game in your browser.
  2. Players take turns clicking on empty spaces in the grid.
  3. The first player to align three marks wins! If all spaces are filled without a winner, the game ends in a draw.

Screenshots:

Capture1

Capture2

Capture3

Capture4

Capture5

Capture6

About

This is a classic Tic Tac Toe game built using HTML, CSS, and JavaScript, designed for two players to take turns marking spaces in a 3x3 grid. The goal is to get three marks in a row—horizontally, vertically, or diagonally—before the opponent does.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published