Skip to content

Swochchho/boardgame

Repository files navigation

Tic Tac Toe Game

CI Status

A simple React-based Tic Tac Toe game built with Vite. The game supports two players or lets you play against the computer (easy, medium, hard). Displays the current player's turn, and shows the winner or a draw at the end. Built using functional components and React hooks.

Features

  • Two-player mode (X and O)
  • Play against the computer (Easy, Medium, Hard)
  • Choose your symbol (X or O) in computer mode
  • Displays current player's turn
  • Detects and displays winner or draw
  • Simple and modern UI
  • Restart game button

Getting Started

  1. Install dependencies:

    npm install
  2. Start the development server:

    npm run dev
  3. Open http://localhost:5173 in your browser to play.

Project Structure

  • src/App.jsx: Main game logic and UI
  • src/App.css: Game styles

Customization

Feel free to modify the styles or logic to add more features!

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published