EvenBreak HTML5

A Browser-Based Chess-Inspired Territorial Conquest Game

PLAY NOW

Game Overview

EvenBreak is a 2-player networked strategy game combining chess mechanics with territory control. Command an army of chess pieces to capture territory and outmaneuver your opponent on an 8x8 board. Each player starts with 16 gold to strategically purchase pieces and expand their kingdom.

Key Features

Real-Time Multiplayer

WebSocket-based networking for smooth, synchronized gameplay between two players.

Chess Mechanics

Authentic piece movement rules: Pawns, Knights, Bishops, Rooks, Queens, and Kings.

Territory System

Claim tiles to expand your domain. Blue for Player 1, Red for Player 2.

Resource Economy

Strategic budgeting with limited gold. Choose wisely which pieces to purchase!

Smooth Controls

Pan, zoom, and navigate with intuitive mouse and keyboard controls.

Zero Dependencies

Pure vanilla JavaScript, HTML5, and CSS3. No frameworks, no build step!

Chess Pieces

Piece Symbol Cost Movement Pattern
Pawn 1 Gold 1 square in any direction (like King)
Knight 2 Gold L-shaped: 2 squares + 1 perpendicular
Bishop 3 Gold Diagonal, unlimited if path clear
Rook 4 Gold Orthogonal (↑↓←→), unlimited if path clear
Queen 7 Gold Bishop + Rook combined
King Special 1 square in any direction (placed at start)

Controls

Left Click: Select piece or move to destination
Long Press (0.5s): Open purchase menu
Right Click: Cancel selection or close menu
Mouse Wheel: Zoom in/out
Middle Mouse + Drag: Pan camera
Alt + Left Drag: Alternative pan
R Key: Reset camera position
Escape: Clear selection and close menus

How to Play

  1. Open index.html in your browser
  2. Wait for connection to server and opponent
  3. You'll be assigned as Player 1 (Blue/White) or Player 2 (Red/Black)
  4. On your turn:
    • Move pieces: Click your piece, then click destination
    • Purchase pieces: Long-press empty tile adjacent to King
  5. Capture enemy pieces and claim territory to dominate the board
  6. Manage your gold wisely - each piece costs resources!

Technical Stack

HTML5 Canvas Vanilla JavaScript ES6+ WebSocket API CSS3 Animations Responsive Design Zero Dependencies

Built with modern web standards, this game runs entirely in the browser with no external libraries or frameworks. The modular architecture includes:

Server Configuration

The game connects to: ws://192.227.145.142:8080

To change the server, edit js/main.js and modify the connection URL in the connectToServer() method.

START PLAYING