Capitol Conquest

Hex‑grid territory strategy — AI heuristics, WebSocket multiplayer, adaptive rendering & telemetry.

Live Phaser 3 WebSocket AI Heuristics Analytics Responsive
Capitol Conquest screenshot

Desktop + Mobile • Real-time Multiplayer • AI Bots

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 Strategy

Duplicate (range 1) or jump (range 2); adjacency flips opponent tiles.

🎮 Modes

AI solo, local two-player & online real-time multiplayer.

🤖 AI Levels

Normal, Hard, Expert—distinct evaluation weights & starting positions.

💬 In-Game Chat

Party-colored real-time messaging with scrollback.

📊 Global Stats

Match outcomes, duration, mode & difficulty persisted.

📱 Multi-Device

Responsive canvas, touch gestures & adaptive viewport.

🎵 Audio System

Music toggle + distinct SFX per action.

⚡ Smooth UX

Keyboard nav, clear affordances, smart defaults.

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

Try Capitol Conquest

Experience AI-driven positional evaluation, hex grid transformations & real-time multiplayer session orchestration.

Launch Game

Repo: GitHub

Audio Credits

MXM Consulting Capability Showcase

Demonstrates MXM Consulting strengths in:

Need Real-Time Interactive Systems?

Phaser / Canvas / WebGL experiences, AI opponent design, multiplayer orchestration & performance analytics — end to end.