Capitol Conquest - Strategic Hexxagon Game

Capitol Conquest Game Screenshot
Play Game →

Live demo. Works on desktop and mobile.

Source code: GitHub repo


Overview

Capitol Conquest is a modern, Hexxagon-style strategy game built with Phaser 3. Two parties compete for control on a hexagonal grid through tactical moves that duplicate or jump pieces and convert adjacent opponent tiles. The game includes adaptive AI with multiple difficulty levels, real-time online multiplayer, built‑in chat, analytics, and responsive UX across devices.


Game Features

🔷 Hex-Based Strategy

Turn-based play on a hexagonal board with duplicate (range 1) and jump (range 2) moves. Adjacent enemy tiles auto-convert after a move.

🎮 Game Modes

Single-player vs AI, local two-player on one device, and real-time online multiplayer with matchmaking.

🤖 AI Difficulties

Normal (even start), Hard (AI advantage), and Expert (strong AI advantage) with distinct evaluation weights.

� In-Game Chat

Party-colored chat in online matches (red for Republicans, blue for Democrats) with clean, scrollable UI.

📊 Global Stats

Online games recorded to global statistics: wins/losses, durations, modes, and difficulty—leaderboard ready.

� Mobile & Desktop

Fully responsive UI, touch-friendly controls, dynamic viewport handling, and enhanced visuals on desktop.

🎵 Audio System

Background music with toggle and distinct SFX for duplicate, jump, and conversion actions.

⚡ Smooth UX

Keyboard navigation in menus, clear visual feedback, and smart defaults for quick start.


AI Implementation

The computer opponent uses a greedy, single-depth heuristic that balances multiple factors. Each candidate move is simulated and scored using a weighted combination of:

Different difficulty levels adjust weights and starting advantages to create distinct play styles and challenge levels.


Online Multiplayer System

Real-time multiplayer features include instant matchmaking, synchronized turns via WebSockets, and reliability features for production use.

Architecture highlights:


Statistics & Analytics

Global and per-mode stats are captured for online matches:


User Interface & UX


Technical Architecture

Frontend: Phaser 3 with ES6 modules, responsive layout with CSS Grid/Flexbox
AI: Heuristic evaluation with multi-factor scoring and move simulation
Backend: Express.js + Socket.IO for multiplayer, server-side validation
Data: Google Apps Script + Google Sheets for global statistics
Storage: LocalStorage for offline caching and preferences
Build/Deploy: Static client (GitHub Pages) + Node server for multiplayer

Deployment & Performance


Game Rules

Objective

Control more tiles than your opponent when all playable hexes are filled.

How to Play

  1. Choose your side (🔴 Republicans or 🔵 Democrats)
  2. Select a mode (Single Player, Local Two-Player, or Online)
  3. For single player, pick a difficulty: Normal, Hard, or Expert
  4. On your turn, either:
    • Duplicate to an adjacent hex (distance 1), or
    • Jump up to two hexes (distance 2)
  5. After moving, adjacent enemy tiles flip to your color
  6. The game ends when no moves remain; majority wins

Controls


Try the Game

Play Capitol Conquest →

Play in your browser on desktop or mobile

Code: GitHub repository


Audio Credits


About MXM Consulting’s Web Development Expertise

This project demonstrates MXM Consulting’s strength in interactive web development, AI implementation, and real-time systems:

Need Interactive Web Development?

Contact MXM Consulting to discuss how we can develop engaging, interactive web applications for your specific requirements.

Get in Touch