Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Ashokaas/BeeHex/llms.txt
Use this file to discover all available pages before exploring further.
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: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:
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.
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
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:Match Game Settings
Ensure your game parameters match theirs:
- Same board size (5, 7, or 9)
- Same time limit
- “Normal” game type selected
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
| Feature | Ranked Games | Private Rooms |
|---|---|---|
| MMR Changes | Yes | No |
| Matchmaking | Automatic | Manual (code) |
| Opponent | Random | Choose friend |
| Game Type | Must be “Classé” | Must be “Normal” |
| Leaderboard | Affects rank | No effect |
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: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.