A premium, modern Tic-Tac-Toe game featuring real-time multiplayer, a built-in economy system, and an AI opponent. Designed with a sleek glassmorphism UI and powered by Socket.io and SQLite.
- 🎮 Game Modes:
- Singleplayer: Battle against an AI with multiple difficulty levels (Easy to Impossible).
- Multiplayer: Host private rooms or join strangers for a competitive match.
- 💎 Economy & Shop:
- Earn XP and coins by winning matches.
- Exchange tokens for gems to purchase exclusive avatars from the shop.
- GDPR-compliant data export and account deletion.
- 📱 Modern UI: Fully responsive design with dark/light modes, smooth animations (Framer Motion), and celebratory confetti.
- Node.js (v18 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/dk3yyyy/tic_tac.git cd tic_tac -
Install dependencies:
npm install cd server && npm install && cd ..
-
Set up environment variables: Create a
.envfile in theserver/directory based on.env.example:cp server/.env.example server/.env
Start both the frontend and backend simultaneously:
npm run dev:all- Frontend: http://localhost:5173
- Backend: http://localhost:3000
- Frontend: React 19, Vite, Framer Motion, Lucide React, Axios, Socket.io-client.
- Backend: Node.js, Express 5, Socket.io, Better-SQLite3, Dotenv.
- Database: SQLite (local persistence).
This project is licensed under the ISC License.
Created with ❤️ by dk3yyyy