Skip to content

faiyankhan/Tic-Tac-Tao-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✅Tic-Tac-Toe Game❌

Overview :

Tic-Tac-Toe is a simple two-player game where the goal is to be the first to get three of your symbols in a row, either horizontally, vertically, or diagonally on a 3x3 grid. This project implements the classic game with a straightforward user interface.

Homepage Preview :

Features :

  • Two-Player Mode: Play against a friend on the same device.
  • Interactive UI: Click on the grid to place your symbol (X or O).
  • Win Detection: The game automatically checks for a winner after each move.
  • Restart Game: Reset the board at any time to start a new game.

Technologies Used :

  • HTML: Markup for the structure of the game.
  • CSS: Styling for the layout and appearance.
  • JavaScript: Game logic, win detection, and interactivity.

How to Play :

Open the game in your web browser.

  1. Player 1 (X) clicks on a cell to place their symbol.
  2. Player 2 (O) then clicks on an empty cell to place their symbol.
  3. Continue taking turns until a player gets three symbols in a row or all cells are filled (resulting in a draw).
  4. The game will announce the winner or if the game is a draw.
  5. To play again, click the "Restart" button.