Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A clean, minimal Tic Tac Toe game built with React + JavaScript.

Features

  • 3x3 board
  • Two players: X and O
  • Automatic win detection
  • Draw detection
  • Reset game functionality

Setup

  1. Install dependencies:
npm install
  1. Run development server:
npm run dev
  1. Open your browser to the URL shown (typically http://localhost:5173)

Component Structure

  • App.jsx → Owns game state (board, current player), handles game logic
  • Board.jsx → Renders the 3x3 grid, passes callbacks to squares
  • Square.jsx → Single square button (fully controlled via props)

How to Play

  1. Click any empty square to place your mark (X or O)
  2. Players alternate turns automatically
  3. Game detects winner or draw
  4. Click "Reset Game" to start over

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages