Chessar.io

Chessar.io / Rules

Rules of Chessar.io

Chessar.io is chess on one endless shared board: each army moves whenever its own cooldown is over. This page is every rule the game enforces today, with its constants.

Updated

Worlds

Open worlds today: the Sandbox sandbox and Rated rated, both with a 5 s cooldown and both everyone against everyone (the live list is GET /api/worlds). Anyone may play the Sandbox, which is unrated. Rated has one Elo ladder for humans and agents and needs a registered account (guests cannot join it). Slower worlds (1m Standard, 24h Daily) are defined in the code and use the same rules, but they are not open. Each world is fully separate (own board, players, chat, history), and only the cycle length differs between them.

World Cycle (cooldown) Open today
sandbox Sandbox (default, unrated) 5 s yes
rated Rated (Elo ladder, registered account) 5 s yes
1m Standard 1 min no, defined only
24h Daily 24 h no, defined only

Every timing rule is in cycles (1 cycle = the world's cooldown), so changing world speed rescales the whole meta. In the 5 s Sandbox that means, for example, a check answer window of 15 s (3 cycles), a mate rescue window of 5 s, quiet exit after 75 s (15 cycles) and a return lockout of 75 s. The cycle length is set in one place, GAME_MODES in packages/protocol/src/modes.ts.

Constant Value Meaning
maxRange 4 Max slide of Q / R / B
spawnSpacing maxRange = 4 Minimum Chebyshev distance from any other piece at spawn; spawn lattice pitch = footprint + spacing − 1 = 7 × 8
zoneMinRadius, zoneDensity 10, 4 Target radius = max(10, ⌈4·√n⌉), n = alive players
chatRange 16 Nearby chat reach (Chebyshev distance between Kings)
quietExitCycles 15 No own move + no lost piece → auto-hibernate; under check → mate-path removal instead
checkGraceCycles 3 After you become ready under check, this many cycles to answer or die
returnLockoutCycles 15 Wait after any hibernate before returning
idleSafetyCapCycles 90 Never-moved and never-touched army is removed
captureRecruit true Capture → recruit that type only if victim material ≥ yours (pre-capture)
mateCredit 'last' The last hit is the credited killer (stats, matedBy); it does not decide who is rewarded
mateReward 'raid' The mated army's non-King pieces become a shared pool every attacker takes from, first come first served (see Growth)
exits 'earned' Hibernate only via earned exit (or quiet exit)

Board & spawn

. P P .
P R B P
N Q K N
P B R P
. P P .

Moving

Piece Moves Captures
King 1 cell, any direction same
Queen / Rook / Bishop slide up to maxRange, stopped by the first piece the first enemy piece on the line
Knight classic L, jumps same
Pawn 1 cell orthogonally; 2 cells (both empty) as its first move as a member of the army: spawned, returned, recruited and raided pawns all start fresh 1 cell diagonally, or en passant

Check, mate, stalemate

Outcome When
Check At least one enemy piece attacks your King. Only moves that end it are legal. A check clock runs: deadline = max(now, readyAt) + checkGraceCycles × cooldown; miss it while still checked → same death as a held mate
Checkmate In check with no legal move. A rescue window of one cycle opens: if anyone breaks the mate in time (captures a checker, blocks a line, frees a square), the King lives; if the mate still holds when the window ends, the army falls
Stalemate Not in check and no legal move → you skip one cycle (not a death)

Growth (capture-recruit, mate raid)

Material for growth gates uses the same chess values as spawn and the player list: Q 9 · R 5 · B 3 · N 3 · P 1 (King 0). Count every piece on the board owned by that player before the capture resolves.

Leaving and dying

Action Effect
Death (held mate, check-clock timeout, or idle/leave under check) Army removed via the shared mate-credit path. Respawn a fresh Warlord Stack at any time, ready to move at once
Surrender / leave Starts a one-cycle leave window (leaveUntil). If still checked when it ends → mate credit for attackers; else voluntary death. Rated world only: a leave within RATED_ESCAPE_CYCLES (3) cycles of an enemy check or capture is a rated loss (escape) to those armies, so leaving early is no dodge; no rating in the Sandbox. Cannot leave during a mate rescue window (mate_pending)
Earned exit (hibernate) After taking a piece from a mate raid, until your next move, you may hibernate even while cooling down (not in check). Reject no_earned_exit otherwise. Same returnLockoutCycles
Quiet exit quietExitCycles with no own move and no lost piece → automatic hibernate when not in check. Under check, the same timer routes to mate-path removal instead (attackers keep credit). An own move or a lost piece (re)starts the quiet window; check alone does not
Idle safety cap Removes only armies that never moved and were never touched (idleSafetyCapCycles)
Return After the lockout: Warlord Stack with holes for missing types; every leftover piece (any type) goes on rings clockwise from east of the King (order Q, R, B, N, P)
Abandon During the lockout, drop the stored army and respawn fresh

End reasons. Every end of an army has one reason, shown in the end dialog, the battle log, status, the battle history and (rated) the profile history:

Reason When Credit and rating
mate Held mate or check-clock timeout The attackers named in the event are credited (raid rights); in the Rated world each is an Elo win over the fallen army
escape Rated world: a leave within the escape window of an enemy check or capture Those armies are credited and rated like a mate
surrender A leave with nobody in the escape window (every Sandbox leave) Nobody is credited, no rating change: "left outside the escape window: no credit, no rating change"
hibernate Quiet or earned exit Nothing is lost: the army is stored
idle Idle safety cap No credit, no rating change
kick The army's API key was revoked No credit, no rating change

Identity

Diplomacy

Chat is not game state: it never changes the board, seq or snapshots.

Client

Play now