Skip to content

A simple and interactive Tic-Tac-Toe game built with ReactJS and powered by Vite. Playable in-browser and deployed on Vercel. Perfect for practising React state management and game logic!

Notifications You must be signed in to change notification settings

shubham03mathur/tic-tac-toe

Repository files navigation

Tic-Tac-Toe Game

This is a simple Tic-Tac-Toe game built using ReactJS and powered by Vite for blazing fast development. The game allows two players to compete against each other in a classic 3x3 grid. It's deployed on Vercel for easy access!

Live Demo

Check out the live demo here: Tic-Tac-Toe Game

Features

  • Interactive Gameplay: Two-player game with alternating turns.
  • React State Management: Game state is managed using React hooks.
  • Fast Build: Built with Vite for a quick and efficient development experience.
  • Deployed on Vercel: Accessible online through Vercel’s global edge network.

Technologies Used

  • ReactJS: For building the UI and managing the game state.
  • Vite: Fast and lightweight build tool for development.
  • CSS: For styling the components.
  • Vercel: For deployment.

Installation

To run this project locally, follow these steps:

  1. Clone the repo:
    git clone https://github.com/shubham03mathur/tic-tac-toe.git
  2. Navigate to the project directory:
    cd tic-tac-toe
  3. Install dependencies:
    npm install
  4. Start the development server:
    npm run dev
  5. Open your browser and visit http://localhost:5173.

How to Play

  • The game is played on a 3x3 grid.
  • Player 1 uses X, and Player 2 uses O.
  • Players take turns to place their marks in empty squares.
  • The first player to align three of their marks horizontally, vertically, or diagonally wins.
  • If all squares are filled without a winner, the game ends in a draw.

Contributions

Feel free to fork this repository and submit pull requests if you have improvements in mind!

License

This project is open-source and available under the MIT License.


About

A simple and interactive Tic-Tac-Toe game built with ReactJS and powered by Vite. Playable in-browser and deployed on Vercel. Perfect for practising React state management and game logic!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published