Skip to content

SachinCoder11/TICK_TAK_TOE--GAME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

--> Tic-Tac-Toe Game <--

12-32-59.mp4
  • Welcome to the Tic-Tac-Toe game! This is a simple web-based implementation of the classic game, where two players take turns marking their symbols (X and O) on a 3x3 grid. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.

Features

  • Two-Player Gameplay: Players can take turns marking their symbols (X and O).
  • Win/Draw Detection: The game checks for a winner or a draw after each move.
  • Restart Button: Easily restart the game without refreshing the page.
  • Responsive Design: The game is optimized for both desktop and mobile devices.
  • User-Friendly Interface: Intuitive layout with clear visual cues for interaction.
  • Game Status Messages: Displays messages indicating the current player, wins, and draws.
  • Visual Effects: Hover effects on cells for better interactivity.
  • Dynamic Board Creation: The game board is dynamically generated using JavaScript.

Technologies Used

  • HTML
  • CSS
  • JavaScript

How to Run

  1. Clone this repository to your local machine:
    git clone https://github.com/yourusername/tic-tac-toe.git
  2. Navigate to the project directory:
    cd tic-tac-toe
  3. Open index.html in your web browser.

Game Rules

  1. The game is played on a 3x3 grid.
  2. Players take turns placing their symbols (X or O) in empty cells.
  3. The first player to align three of their symbols horizontally, vertically, or diagonally wins the game.
  4. If all cells are filled without a winner, the game ends in a draw.

Contributing

  • Contributions are welcome! If you have suggestions for improvements or features, feel free to fork the repository and submit a pull request.

  • Feel free to add or modify any sections as needed based on your specific project details.

This README now includes additional features and provides a more comprehensive overview of your project!

Credits

  • Background Image: Image by Stable Diffusion (Used in the game background).

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published