Skip to content

extcbrijesh/react-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Game

A beautiful, modern Tic Tac Toe game built with React and TypeScript. Features a responsive design with smooth animations and a clean user interface.

Features

  • 🎮 Fully Functional Game: Complete tic-tac-toe gameplay with win detection
  • 🎨 Modern UI: Beautiful gradient design with smooth animations
  • 📱 Responsive: Works perfectly on desktop, tablet, and mobile devices
  • Fast & Smooth: Optimized performance with React hooks
  • 🏆 Win Detection: Automatically detects winning combinations and draws
  • 🔄 Reset Game: Easy restart functionality
  • 🎯 Visual Feedback: Winning squares are highlighted with animations

How to Play

  1. Start the Game: Run npm start to launch the game
  2. Take Turns: Players X and O take turns clicking on empty squares
  3. Win Condition: Get three of your marks in a row (horizontally, vertically, or diagonally)
  4. Draw: If all squares are filled without a winner, the game is a draw
  5. New Game: Click "New Game" to start over

Game Rules

  • Player X always goes first
  • Players alternate turns
  • Click on any empty square to place your mark
  • First player to get three marks in a row wins
  • If all squares are filled without a winner, it's a draw

Available Scripts

In the project directory, you can run:

npm start

Runs the game in development mode.
Open http://localhost:3000 to play in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the game for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your game is ready to be deployed!

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Technologies Used

  • React 19: Modern React with hooks
  • TypeScript: Type-safe development
  • CSS3: Modern styling with gradients and animations
  • Create React App: Development environment

Learn More

To learn React, check out the React documentation.

To learn TypeScript, visit the TypeScript documentation.

Releases

No releases published

Packages

No packages published