Skip to content

Krishna9q/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Tic Tac Toe Game

Welcome to the Tic Tac Toe Game! This is a classic 2-player game created with HTML, CSS, and JavaScript. Enjoy a sleek design, smooth gameplay, and fun while challenging your friends!

Tic Tac Toe Screenshot

๐Ÿš€ Features

  • 2-Player Gameplay: Play with a friend as Player X and Player O.
  • Responsive Design: Enjoy the game on both desktop and mobile.
  • Winning Line Animation: A cool animation highlights the winning line.
  • Restart Button: Reset the board at any time for a fresh game.
  • Draw Detection: The game notifies when thereโ€™s a draw.
  • Smart UI Feedback: Visual indicators show the current playerโ€™s turn.

๐Ÿ•น๏ธ How to Play

  1. Click on a cell to make your move.
  2. The game alternates turns between Player X and Player O.
  3. Win by aligning three of your marks in a row, column, or diagonal.
  4. If all cells are filled and no one has won, the game will declare a Draw.
  5. Reset the game at any time using the Restart button.

๐Ÿ› ๏ธ Technologies Used

  • HTML: Structure of the game board and elements.
  • CSS: Styling for the board, winning animations, and responsive design.
  • JavaScript: Game logic, including turn management, win conditions, and draw detection.

๐ŸŽ‰ Demo

Experience the game live: (https://krishna-ox.netlify.app/)

๐Ÿ“‚ File Structure

tic-tac-toe/
โ”œโ”€โ”€ index.html       # HTML structure
โ”œโ”€โ”€ style.css        # Styling for the game
โ”œโ”€โ”€ script.js        # Game logic
โ””โ”€โ”€ README.md        # Project documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published