This is the backend for HandGame Arena, a real-time multiplayer Rock-Paper-Scissors elimination game designed for the web and Reddit Devvit (experimental). It handles player matchmaking, room creation, gameplay logic, and real-time communication via WebSockets.
๐จ Note: Reddit does not currently support WebSockets, so full gameplay is only available outside of Reddit for now.
- ๐ Real-Time Gameplay via WebSocket
- ๐ฎ Room Management โ Public and private rooms
- ๐ฅ Elimination Rounds โ Players get eliminated each round
- ๐ง Auto-Move System โ Idle players get random moves
- ๐๏ธ MongoDB Integration โ For player, room, and game state storage
- Backend: Node.js with TypeScript
- WebSockets:
socket.io - Database: MongoDB with Mongoose
- Hosting: Google Cloud Run (or any Node-compatible host)
- โ No WebSocket Support on Reddit
The game is fully functional, but cannot be played directly inside Reddit yet due to WebSocket restrictions.
๐ฎ Frontend Repository:
๐ RedditHandGame (React Frontend)
MIT