Skip to content

This is a modern, responsive Tic Tac Toe game built with React.js, Vite.js, and Tailwind CSS. The game supports two players and tracks the win counts for each player. It also includes a reset functionality to start a new game.

Notifications You must be signed in to change notification settings

THEFZNKHAN/tic-tac-toe

Repository files navigation

Tic Tac Toe Game

This is a modern, responsive Tic Tac Toe game built with React.js, Vite.js, and Tailwind CSS. The game supports two players and tracks the win counts for each player. It also includes a reset functionality to start a new game.

tic-tac-toe-homepage

Table of Contents

Features

  • Responsive design for all screen sizes.
  • Two-player support.
  • Win count tracking for each player.
  • Reset functionality to start a new game.
  • Stylish and modern UI using Tailwind CSS.

Installation

Follow these steps to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/THEFZNKHAN/tic-tac-toe
    cd tic-tac-toe
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm run dev
  4. Build the project for production:

    npm run build
  5. Deploy the project to GitHub Pages:

    npm run deploy

Usage

Once you have the development server running, you can access the game by navigating to http://localhost:5173 in your web browser. To play the game, simply click on the squares to place your mark (X or O). The game will automatically determine the winner and update the status and win counts accordingly. You can reset the game at any time by clicking the "Reset" button.

Live Demo

You can view a live demo of the game here.

Contributing

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

To contribute:

  1. Fork the repository.
  2. Create a new branch: git checkout -b my-feature-branch
  3. Make your changes and commit them: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-feature-branch
  5. Submit a pull request.

About

This is a modern, responsive Tic Tac Toe game built with React.js, Vite.js, and Tailwind CSS. The game supports two players and tracks the win counts for each player. It also includes a reset functionality to start a new game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published