A real-time, ultra-fast, cross-platform multiplayer Tic-Tac-Toe web application. Built with low-latency rendering and professional decoupled architecture ensuring a premium gaming experience mapped perfectly to cloud statistics.
Designed and Licensed by Loganathan.
Instead of relying on standard HTTP polling, the entire gameplay engine leverages Socket.io. Connections are continuously held open leveraging raw RAM matrices. Moves instantly translate to the backend where validation checks return in miliseconds avoiding slow payload serialization guaranteeing esports-level responsiveness.
Every player registers a local caching profile referencing their name and age. This natively injects into MongoDB MongoDB Atlas. While playing, victorious matches automatically sync and calculate Victories on your global profile ensuring your stats persist across all devices.
The Frontend operates completely independently from the Backend.
.env bounded CORS restrictions.Creating a match instantly issues a highly-secure 4-Character Alphanumeric Code.
Room Full Toast Notification without risking loading conflicts.When clicking Play Random, the engine bypasses traditional queuing!
Share a singular device without sacrificing stats!
Frontend UI:
Backend API:
Given the highly professional detached environment, you must spin up both elements securely.
Inside your terminal navigate to the project directory and install the necessary frameworks:
npm install express socket.io cors mongoose dotenv
Create a .env file in the root directory mapping your cloud credentials:
MONGODB_URI=your_mongodb_atlas_connection_string
PORT=3000
FRONTEND_URL=http://127.0.0.1:5500
Ensure your FRONTEND_URL accurately targets whatever local address you are hosting the UI from.
node server.js
Your CLI should return Server running on http://localhost:3000 & MongoDB Connected.
Since this is completely detached, do not view it through the Node string.
Live Server plugin installed.public/index.html file and select Open with Live Server.This project architecture, layout, design, and code repository are strictly the intellectual property of Loganathan. All rights reserved. Do not distribute without explicit authorization.