Skip to content

Shailendra122/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

A simple Tic-Tac-Toe game built using React.js. This project demonstrates the implementation of basic React concepts such as component-based architecture, state management, and event handling.

🎮 Features

Two-player mode: Play with a friend by alternating turns. Dynamic board updates: The board updates dynamically as players take their turns. Game status display: The game indicates the current player's turn and announces the winner or a draw. Responsive UI: Designed to work on devices of all screen sizes.

🛠️ Technologies Used

React.js: For building the user interface and handling game state. JavaScript (ES6+): Logic for the game rules. CSS: Basic styling to enhance the look of the game.

🚀 Getting Started

Follow these steps to run the Tic-Tac-Toe game on your local machine:

Prerequisites Make sure you have Node.js and npm (Node Package Manager) installed on your computer.

Installation

  1. Clone the repository to your local machine.
    git clone https://github.com/Shailendra122/tic-tac-toe-react.git

Navigate into the project directory:

  1. Install the required packages.

    cd tic-tac-toe-react
    npm install
  2. Start the development server.

    npm start
  3. Open the project in your browser at http://localhost:3000 to view your project.

  4. Create your React components and add your styles using Tailwind classes. You can also create new CSS files and import them into your components.