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.
- 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
- React (Functional Components + Hooks)
- CSS for styling
/src
- App.js # Main entry
/components
- Board.jsx # Main game board logic
- Square.jsx # Single square (cell) component
- Board.css # Board styling
-
Clone the repository: git clone https://github.com/MarcosFig-dev/Tic-Tac-Toe cd Tic-Tac-Toe
-
Install dependencies: npm install
-
Start the development server: npm start Then open http://localhost:3000 in your browser.