How boradmir/online-101-okey-demo works
101 Okey Online is a browser-based, real-time multiplayer game. Players choose a name and options, join through the home page, then play through a live game interface; the server owns authoritative game state and broadcasts updates. The README also describes automatic tile grouping and scoring, rule enforcement and penalties, reconnect/synchronization support, and interactive tomato effects. The server excerpt is partial, so links for some room-management and client features are left unspecified where their wiring is not established.
Main entry points: main.js Join client · game.html Game interface · index.js Socket server · game.js Game client
Components 11
Browser experience
- Join and options
public/index.html - Join client
public/js/main.js - Game interface
public/game.html - Game client
public/js/game.js - Game styling
public/css/style.css
Live game runtime
- Socket server
server/index.js
Game rules and state
- Game rules
server/gameLogic.js - Runtime logging
server/logger.js
Room management
- Room state
server/roomManager.js
Other components
- Player
- Socket.IO
Connections 13
- Player → Join and options: opens
- Join and options → Join client: loads
- Join client → Socket.IO: emits join
- Socket.IO → Socket server: delivers events
- Socket server → Socket.IO: emits updates
- Socket.IO → Join client: delivers events
- Join client → Game interface: redirects
- Game interface → Game client: loads
- Game interface → Game styling: uses styles
- Game client → Socket.IO: sends actions
- Socket.IO → Game client: delivers updates
- Socket server → Game rules: creates and calls
- Game rules → Runtime logging: logs events