A simple Tic-Tac-Toe game built using React and TypeScript.
- Interactive Tic-Tac-Toe board
- Turn-based gameplay
- Responsive UI
- Component-based React structure
- Built with TypeScript
- React
- TypeScript
- CSS
Clone the repository:
git clone https://github.com/yourusername/tic-tac-toe.gitGo into the project folder:
cd tic-tac-toeInstall dependencies:
npm installRun the development server:
npm start- Add a button to restart the game instantly.
- Reset board state and winner status.
Currently diagonal wins are not detected properly.
Planned fixes:
- Left diagonal check
- Right diagonal check
Example:
X | O | X
O | X | O
X | O | XThe game should correctly identify diagonal winners.
Allow users to:
- Enter User 1 name
- Enter User 2 name
Example:
Player 1: Nikunj
Player 2: RahulDisplay:
Nikunj's Turnand
Rahul Wins!Planned UI improvements:
- Better board styling
- Hover effects
- Winning animation
- Mobile responsiveness
- Dark mode support
Future goal:
- Publish game online
- Allow two random users to play together
Possible technologies:
- Socket.IO
- Node.js
- Express
Future features:
- Create room
- Join room
- Real-time multiplayer
- Online matchmaking
- Score tracking
- AI opponent
- Sound effects
- Game history
- Undo move feature
- React component structure
- State management
- TypeScript basics
- Event handling
- Conditional rendering
- Game logic implementation
Built by Nikunj 🚀