Skip to content

A siple and interactive Tic Tac Toe game built with HTML, CSS and JavaScript, offering seamless user experience for two players to compete in a classic battle of strategy.

Notifications You must be signed in to change notification settings

Sudhanshu727/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

A simple, interactive Tic Tac Toe game built using HTML, CSS, and JavaScript. This project is a digital recreation of the classic game, providing a fun and engaging way for two players to compete.


Features

Two-Player Gameplay: Play against a friend in real-time.

Responsive Design: Seamlessly adapts to different screen sizes.

Dynamic UI: Real-time updates for every move.

Game Reset: Reset the board to play again without refreshing.

Win/Draw Detection: Automatically determines the game outcome.


Installation

  1. Clone the repository:

git clone https://github.com/your-username/tic-tac-toe.git

  1. Navigate to the project directory:

cd tic-tac-toe

  1. Open index.html in your browser to start playing.

Usage

  1. Open the game in any modern browser.

  2. Take turns marking cells on the grid (Player 1: X, Player 2: O).

  3. The game will highlight the winner or declare a draw when the game ends.

  4. Use the "Reset" button to play again.


Challenges Faced

Implementing win and draw detection logic.

Debugging dynamic UI updates.

Ensuring responsiveness for various devices.

Future Enhancements

Add an AI opponent for single-player mode.

Implement a scoring system.

Introduce themes and animations for better user experience.

Acknowledgments

Inspired by the classic game of Tic Tac Toe.

About

A siple and interactive Tic Tac Toe game built with HTML, CSS and JavaScript, offering seamless user experience for two players to compete in a classic battle of strategy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published