BeeHex offers multiple game modes to suit your playing style, from competitive ranked matches to casual offline games. Choose between online matchmaking, private rooms, or local play.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.
Available Game Modes
Online Matchmaking
Search for opponents and compete in ranked or casual matches
Private Rooms
Create private games with friends using room codes
Offline Mode
Play locally without an internet connection
Game Review
Analyze completed games with AI-powered move evaluation
Online Matchmaking
Connect with players worldwide through BeeHex’s matchmaking system. The game automatically pairs you with opponents of similar skill level.Ranked vs Casual
- Ranked
- Casual
Ranked mode affects your MMR (Match Making Rating) and is tracked in your game history. Win games to climb the leaderboard!
- Board sizes: 5x5, 7x7, or 9x9
- MMR-based matchmaking
- Game results affect your rating
- Full game history tracking
src/app/game_mode/page.tsx
Game Search Process
Select Game Parameters
Choose your preferred board size (5, 7, or 9) and time limit settings from the game mode page.
src/app/definitions.ts
Initiate Search
The client establishes a WebSocket connection and sends a game search packet to the server.
src/app/game_mode/WebsocketHandler.ts
Matchmaking
The server searches for an opponent within your ELO range and returns match details:
src/app/definitions.ts
Private Rooms
Create custom games with friends using private room codes. Perfect for practice sessions or playing with specific opponents.Creating a Private Room
Select 'Partie privée'
On the game mode page, choose “Partie privée” instead of “Chercher une partie”.
Enter Room Code
Enter a shared room code (or create a new one) that both players will use:
src/app/game_mode/page.tsx
Configure Settings
Select your board size and time limit. Both players must use the same room code but the game parameters are set by the room creator.
Private room games are never ranked and don’t affect your MMR, regardless of the outcome.
Room Code Tips
- Room codes are case-sensitive
- Special characters on French keyboards are automatically converted to numbers
- Share the exact code with your opponent to ensure successful connection
src/app/game_mode/page.tsx
Offline Mode
Play Hex without an internet connection using BeeHex’s offline handler. Perfect for practicing, learning, or playing on-the-go.Starting an Offline Game
Offline games use a special URL format:src/app/game_mode/page.tsx
src/app/hex/[gameId]/OfflineHandler.ts
Offline Features
Full Game Mechanics
Full Game Mechanics
All standard Hex rules are enforced:
- Win detection through path-finding algorithms
- Turn-based gameplay
- Move validation
- Game state management
src/app/hex/[gameId]/OfflineHandler.ts
Local State Management
Local State Management
The offline handler maintains complete game state locally:
- Grid array tracking
- Move history
- Turn counter
- Win condition checking
Move Export
Move Export
Games can be exported as move sequences for later analysis:This allows you to review offline games using the analysis features.
src/app/hex/[gameId]/OfflineHandler.ts
Board Size Options
BeeHex supports three standard Hex board sizes:5x5
Quick gamesPerfect for beginners~10-15 moves
7x7
Balanced gameplayStandard practice~20-30 moves
9x9
Strategic depthTournament size~35-50 moves
src/app/definitions.ts
Game Status Tracking
BeeHex tracks comprehensive game status throughout the match lifecycle:src/app/definitions.ts
Mathematical impossibility: Hex games cannot end in a draw. One player must always form a connecting path.
Recent Games History
View your last 5 games with detailed statistics on the game mode page:- Current MMR display
- Win/loss indication
- MMR changes per game
- Opponent information
- Game date and time
src/app/game_mode/page.tsx
Next Steps
Multiplayer Features
Learn about real-time gameplay and WebSocket communication
AI Analysis
Discover how the AI engine evaluates positions and suggests moves