Skip to main content

BeeHex

Play the classic Hex board game online with real-time multiplayer, AI-powered move analysis, and competitive rankings

What is BeeHex?

BeeHex is a modern Progressive Web App (PWA) that brings the strategic board game Hex to your browser. Whether you want to challenge friends, compete in ranked matches, or improve your skills with AI analysis, BeeHex provides a comprehensive platform for players of all levels.

Key Features

Online Multiplayer

Play against opponents in real-time with WebSocket-powered matchmaking

AI Analysis

Get move recommendations powered by minimax algorithm with advanced heuristics

Ranked System

Compete for glory with MMR/ELO-based matchmaking and leaderboards

Offline Mode

Practice against yourself or analyze positions without an internet connection

Game Modes

BeeHex supports multiple ways to play:
  • Ranked Matches — Compete against players of similar skill levels to climb the leaderboard
  • Casual Games — Play unranked matches to practice or experiment with strategies
  • Private Rooms — Create custom games with friends using room codes
  • Offline Play — Analyze positions or play against yourself locally

How Hex Works

Hex is a two-player strategy game played on a hexagonal grid. Each player attempts to connect opposite sides of the board with an unbroken chain of their colored pieces:
  • Red Player connects left to right
  • Blue Player connects top to bottom
The first player to complete their connection wins. Thanks to mathematical properties, the game cannot end in a draw, and there’s always a winner.
BeeHex supports board sizes of 5×5, 7×7, and 9×9 hexagons, with different difficulty levels and strategic depth.

Getting Started

Quickstart Guide

Create an account and start playing in under 2 minutes

Game Features

Explore all the different ways to play BeeHex

Technical Architecture

Learn how BeeHex is built under the hood

Contributing

Help improve BeeHex by contributing to the project

Technology Stack

BeeHex is built with modern web technologies:
  • Next.js 14 with React 18 for the frontend framework
  • TypeScript for type-safe code
  • Socket.IO for real-time WebSocket communication
  • Web Workers for non-blocking AI move calculation
  • Styled Components for component styling
  • Progressive Web App features for offline capabilities

About the Game

Hex was invented independently by Piet Hein in 1942 and John Nash in 1948. It’s known for its simple rules but deep strategic complexity. The game has been proven to be PSPACE-complete, making it computationally challenging to solve optimally. BeeHex brings this classic game to the modern web with features that enhance both casual and competitive play.