Skip to content

chapman-w/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

A simple interactive tic-tac-toe game built with React.

Features

  • Two-player gameplay (X and O)
  • Click detection on game squares
  • Winner calculation logic
  • Game state management with React hooks

Project Structure

src/
├── App.js          # Main Board component with game logic
├── index.js        # React app entry point
└── styles.css      # Game styling

How to Play

  1. Players take turns clicking on empty squares
  2. X goes first, then O
  3. First player to get three in a row (horizontal, vertical, or diagonal) wins
  4. Game displays current player or winner status

Getting Started

npm install
npm start

The game will open in your browser at http://localhost:3000.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published