Skip to content

About

A simple React-based Tic-Tac-Toe game with a clean interface and basic game logic, including win detection and player turns. Ideal for beginners learning React state, component structure, and event handling.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

Tic-Tac-Toe 🎮

A simple and interactive Tic-Tac-Toe game built with React. This project demonstrates how to manage component state, handle user events, and render dynamic content in a clean and modular way.

🚀 Features

  • Two-player turn-based gameplay (X and O)
  • Win condition detection (rows, columns, diagonals)
  • Basic invalid move prevention
  • "New Game" button to reset the board

🛠️ Tech Stack

  • React (Functional Components + Hooks)
  • CSS for styling

📁 File Structure

/src

  • App.js # Main entry

/components

  • Board.jsx # Main game board logic
  • Square.jsx # Single square (cell) component
  • Board.css # Board styling

🧑‍💻 Getting Started

  1. Clone the repository: git clone https://github.com/MarcosFig-dev/Tic-Tac-Toe cd Tic-Tac-Toe

  2. Install dependencies: npm install

  3. Start the development server: npm start Then open http://localhost:3000 in your browser.

About

A simple React-based Tic-Tac-Toe game with a clean interface and basic game logic, including win detection and player turns. Ideal for beginners learning React state, component structure, and event handling.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages