Skip to content

AasthaSingh03/Game-Using-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Tic-Tac-Toe Game (React + TypeScript + Vite)

A simple and responsive Tic-Tac-Toe game built with React, TypeScript Play the classic Xs and Os game in your browser with a clean and interactive UI.

Project Structure

tictactoe/ β”œβ”€β”€ public/ β”‚ └── vite.svg β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ assets/ β”‚ β”œβ”€β”€ App.tsx # Main game component β”‚ β”œβ”€β”€ Square.tsx # Individual square component β”‚ β”œβ”€β”€ main.tsx # Entry point β”‚ β”œβ”€β”€ App.css # Game-specific styling β”‚ β”œβ”€β”€ index.css # Global styles β”‚ └── vite-env.d.ts # Vite TypeScript declarations β”œβ”€β”€ index.html β”œβ”€β”€ package.json β”œβ”€β”€ tsconfig.json └── vite.config.ts

Technologies Used

  • React
  • TypeScript
  • CSS for styling

Install dependencies

npm install

Run the development server

npm run dev

How to Play

-Players alternate placing X or O on the 3x3 board. -The first to get 3 in a row (horizontally, vertically, or diagonally) wins. -If all cells are filled without a winner, it's a draw. -Refresh or use a "Restart" button (if implemented) to play again.

License

This project is licensed under the MIT License.

About

Made full web application for TicTacToa Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors