Overview
Private rooms allow you to create custom games and invite specific friends using room codes, bypassing the public matchmaking system.Private rooms are perfect for:
- Playing with friends
- Practicing specific strategies
- Teaching new players
- Casual games without MMR changes
Creating a Private Room
Follow these steps to set up a private game:1
Navigate to Game Mode
Visit
/game_mode or click “Jouer” in the bottom navigation bar.2
Select Normal Game Type
Choose “Normal” as your game type.
3
Configure Game Settings
Set your preferred game parameters:Time Limit: Choose from available options (default: 0 seconds for untimed)Board Size: Select from three sizes:
4
Choose Private Room Option
Under “Avec qui jouer?” (Who to play with), select “Partie privée” instead of “Chercher une partie”.This reveals the room code input field.
5
Enter Room Code
Create or enter a room code in the “Code de la partie” field:
- Alphanumeric codes supported
- Case-sensitive
- Share this code with your friend
6
Click Jouer to Join
Press the “Jouer” button to create/join the room. The system will:
- Connect to the game server via WebSocket
- Send a
JOIN_ROOMpacket with your room code - Wait for a second player to join with the same code
- Start the game when both players are ready
Room Code System
How Room Codes Work
The private room system uses unique identifiers:Both players must use identical game parameters (board size, time limit) for the room to match. Mismatched settings will prevent connection.
Room Code Input
The input field includes special character conversion:Joining a Friend’s Room
To join a game your friend created:1
Get the Room Code
Ask your friend for the exact room code they used when creating the room.
2
Match Game Settings
Ensure your game parameters match theirs:
- Same board size (5, 7, or 9)
- Same time limit
- “Normal” game type selected
3
Select Partie Privée
Choose “Partie privée” under “Avec qui jouer?”
4
Enter Room Code
Type or paste the room code exactly as provided (case-sensitive).
5
Join the Game
Click “Jouer” to connect. You’ll be matched with your friend instantly if settings match.
Game Configuration
Available Settings
Private rooms support full customization:Board Sizes
5×5: Quick 10-15 minute games7×7: Standard 20-30 minute matches9×9: Deep strategic games (40+ minutes)
Time Limits
0 seconds: Untimed (think as long as you need)Additional time limits may be configured in game settings
Ranked vs. Private Rooms
Connection Process
Understand what happens when you create/join a room:WebSocket Connection
Loading Screen
While waiting for your friend:- Your friend joins with matching code
- Connection error occurs
- You cancel the search
If the loading screen persists, verify your friend used the exact same room code and game settings.
Troubleshooting Private Rooms
Connection Issues
Solutions:- Check your internet connection
- Verify you’re logged in (see username in navbar)
- Try refreshing the page
- Log out and log back in
Room Not Found
If you can’t connect to a friend’s room:1
Verify Room Code
Confirm the exact code with your friend—codes are case-sensitive.
2
Check Game Parameters
Both players must select identical:
- Board size
- Time limit
3
Confirm Game Type
Both players must have “Normal” selected, not “Hors-Ligne” or “Classé”.
4
Timing
Try clicking “Jouer” at approximately the same time to ensure the room exists when you search.
Infinite Loading
Stuck on the loading screen?- No matching room exists
- Settings mismatch between players
- Server-side matching error
Game Rules in Private Rooms
Private room games follow standard Hex rules:Turn-Based
Players alternate turns placing pieces on the hexagonal board
Victory Condition
First to connect their two edges wins:
- Red: Top to bottom
- Blue: Left to right
Game Features
Private rooms include all standard features:- Real-time synchronization via WebSocket
- Move validation on server side
- Game review mode after completion
- Full move history saved to database
- Automatic victory detection
Private room games are saved to your game history just like public matches, but they don’t affect your MMR or leaderboard position.
Best Practices
Creating Rooms
During Gameplay
- Stay connected: Don’t close the tab during the game
- Reconnection works: If disconnected, the game will attempt to reconnect you automatically
- Be patient: Allow time for moves to synchronize over the network
Advanced: Room Code Sharing
Convenient ways to share room codes:Text/Chat
Send via Discord, WhatsApp, SMS, etc.
Voice Call
Spell out the code over voice chat
Screen Share
Show your game setup screen
Private Room vs. Other Modes
When to Use Private Rooms
Choose private rooms when you want to:- Play against a specific friend
- Practice without affecting rank
- Teach someone the game
- Try experimental strategies
- Have fun in a casual setting
When to Use Matchmaking
Choose “Chercher une partie” when you want to:- Find opponents quickly
- Play ranked for MMR
- Face players of similar skill
- Discover new opponents
When to Use Offline Mode
Choose “Hors-Ligne” when you want to:- Play without internet
- Pass-and-play on same device
- Practice alone
- No account required
Game History
After your private room game ends:- History page (
/history): Browse all past games - Game mode sidebar: See last 5 matches
- Direct URL:
/hex/o_[gameId]to review
Security & Fair Play
Room Code Privacy
Room codes are:- Not listed publicly: Only players with the code can join
- Session-based: Rooms close after the game
- No password: The code itself is the authentication
Anti-Cheat
All moves are validated server-side:- Move legality checked: Can’t place on occupied cells
- Turn order enforced: Must wait for your turn
- Victory detection: Server determines winner (not client)
Next Steps
Start Playing
Learn gameplay mechanics and controls
Ranking System
Understand MMR and competitive play
Need help? If you encounter issues with private rooms, check your browser console for error messages or verify your internet connection and login status.