Skip to content

Ojus999/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

A simple Tic Tac Toe game implemented using HTML, CSS, and JavaScript.

Overview

This project is a classic Tic Tac Toe game where two players take turns marking cells in a 3x3 grid. The game checks for a winner or a draw after each move.

Technologies Used

  • HTML: Provides the structure of the game.
  • CSS: Adds styling to the elements for an appealing user interface.
  • JavaScript: Implements the game logic and functionality.

Features

  • Responsive Design: The game is designed to be responsive and can be played on various devices.
  • Player Switching: Players take turns marking cells as "X" or "O."
  • Winning Condition: The game checks for a winner after each move and displays the result.
  • Draw Detection: If no winner is found and all cells are filled, the game declares a draw.

How to Play

  1. Open the index.html file in your web browser.
  2. Players take turns clicking on the cells to mark them.
  3. The game will display the current player's turn and check for a winner or a draw after each move.
  4. If a winner is found, the game will display a congratulatory message.
  5. Click the "Reset" button to start a new game.

Project Structure

  • index.html: Contains the HTML structure of the game.
  • style.css: Provides the styling for the game elements.
  • script.js: Implements the game logic and functionality.

Screenshots

image image

Future Enhancements

  • Multiplayer mode with user authentication.
  • Improved styling and animations.
  • Additional features such as a score tracker.

Contributions

Contributions are welcome! If you have ideas for improvements or new features, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

Live Deployment

https://ojus999.github.io/TicTacToe/

Enjoy playing Tic Tac Toe!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published