← Back to game

Information Warfare, Two-King Endgames & Search Architecture

Q-Gambit Strategy Library & AI Design

QUBE

Every move in Q-Gambit fights on two fronts at once: contesting squares on the 8x8 board and controlling which piece identities are revealed or concealed. Going beyond the introductory guide, this library explains deliberate ambiguity preservation, two-king endgame conversion, and the exact constraint-solver and search architecture powering Q-Gambit.

1. Superposition Warfare: Ambiguity Preservation vs. Capture Timing

A strong move does not only claim a square—it avoids leaking team-wide identity slots while forcing the opponent to narrow theirs.

QUBE

Unlike classical chess, each Q-Gambit piece occupies a single square while carrying a bitmask of remaining candidate identities (King, Queen, Rook, Bishop, Knight, Pawn). A piece with Bishop and Queen candidates preserves ambiguity whenever it glides along an open diagonal, because both pieces share that trajectory. Moving orthogonally removes Bishop and immediately confirms Queen—without giving the piece any new movement power it did not already possess before collapsing.

Confirmation is therefore an informational concession, not a mobility upgrade. As soon as your move locks the single Queen slot for your side, the global constraint solver strips the Queen candidate from every other friendly piece, often triggering a chain reaction across unmoved teammates. Before turning a corner or changing direction, check whether the resulting slot saturation exposes a hidden Rook, Knight, or King elsewhere on your side.

Captures carry a dual consequence: they remove material from the board while permanently locking one of the sixteen starting identity slots off the board. Because captured pieces remain part of the 16-piece slot budget (1K, 1Q, 2R, 2B, 2N, 8P), trading away an already-confirmed piece differs sharply from capturing an unresolved piece. Stripping a high-value candidate (such as Queen or King) from an active enemy piece can defuse a threat, whereas an ill-timed exchange may accidentally resolve the defender’s remaining ambiguity for free.

Stay on shared trajectories to preserve dual threats

When a piece holds [Bishop, Queen], advancing along clear diagonals forces your opponent to defend both future diagonal pins and potential rank/file invasions. Keep that dual pressure active until collapsing to Queen wins material, delivers checkmate, or locks an essential defensive file.

Audit the 16-slot budget before every capture or direction shift

Because captured pieces still count toward the 16 identity slots, confirming one Rook or Bishop can instantly collapse unmoved teammates. Always scan your other unresolved pieces before committing to an irreversible directional reveal.

Use pins and forks to force opponent observations

Attacking an unresolved enemy piece along an open line often leaves only one safe escape direction—forcing the opponent to reveal whether that piece is a Queen, Knight, or Pawn just to survive.

2. Two-King Endgame Theory: Confirmed vs. Quantum King Mates

Capturing one King-candidate piece does not win if another living piece still holds the King candidate—endgames revolve around collapsing the backup King.

QUBE

Whenever a side leaves unmoved pieces or moves only one square diagonally or orthogonally, two or more pieces can simultaneously retain the King candidate bit. In this two-king endgame state, capturing one King candidate merely eliminates that piece and removes its identity slot; play continues uninterrupted as long as another living piece on the board still carries a viable King candidate.

Q-Gambit enforces a strict safety boundary: neither player may make a move that leaves their last living King candidate in check. While two King candidates coexist, however, one can absorb pressure, step forward as an active decoy, or contest files without triggering illegal self-check—because the backup King candidate keeps the side alive. This redundancy makes a two-king position surprisingly resilient against premature attacks.

Converting a two-king endgame therefore follows a disciplined two-phase sequence. First, use long-range threats, knight forks, or slot saturation to force one of the King candidates into a two-square move, a diagonal capture, or a non-King identity collapse. Once only one living King candidate remains, it instantly becomes a confirmed King subject to standard checkmate and stalemate geometry.

Force multi-square escapes to strip backup King candidates

Because a King can never step more than one square, threatening a secondary King candidate so that only a two-square slide or Knight jump saves it forces an immediate identity collapse—leaving the remaining King candidate exposed as the sole true King.

Exploit promotion and slot exhaustion for sudden mates

In sparse endgames, promoting a Pawn or confirming the last minor piece often cascades through the 63-subset solver and strips a backup King candidate automatically. If the sole remaining King is already in the line of fire, checkmate arrives without needing a direct capture.

Defend by keeping backup King candidates separated

When defending a two-king endgame, avoid clustering both King candidates along the same rank, file, or knight-fork geometry. Keeping them on independent squares preserves defensive redundancy until your counterplay activates.

3. Quantum Chess AI & Engine Architecture

Q-Gambit’s CPU opponent and QUBE hint engine combine an exact 63-subset constraint solver with quantum-aware iterative deepening search.

QUBE

At the foundation sits resolveQuantumState, a constraint-propagation solver that models each piece’s possible identities as a 6-bit mask and examines all 63 non-empty subsets of the six piece types across each player’s 16 pieces (both alive and captured). Whenever the number of pieces confined to a subset equals the maximum slot quota for that subset, those identity bits are stripped from every other friendly piece until equilibrium is reached or a QuantumContradiction rejects the illegal branch.

On top of this solver, searchBestMove runs Iterative Deepening Negamax with Alpha-Beta pruning and a transposition table keyed by searchPositionKey. Unlike classical chess engines that hash only square occupancy, searchPositionKey encodes every piece’s candidate bitmask, origin square, capture counts, and lastMove—because identical board coordinates permit completely different legal moves and chain collapses when underlying candidate constraints differ.

To prevent horizon blindness on quiet information bombs, the quiescence phase extends not only captures, promotions, and checks, but also quiet moves that force an unmoved piece on the board into a single confirmed identity. Finally, the EvalV1 and EvalQoppelia evaluators score unresolved superpositions above a flat average (EvalV1 blends 70% maximum candidate value with 30% mean candidate value, while EvalQoppelia adds pseudo-legal mobility, marginal identity allocation entropy, King-candidate redundancy, king safety, and center control), capturing the strategic agency of deciding when and how to collapse.

Exact 63-subset saturation instead of heuristic guessing

Subset propagation detects both single-type exhaustion (such as two Rooks locking out a third) and multi-type group locks (for example, four pieces confined to {Bishop, Knight} stripping both types from the fifth piece).

Quantum tactical extensions in quiescence search

Even a non-capturing move can trigger a global chain collapse that turns a latent piece into a confirmed Queen or exposes a sole King; extending those chain collapses prevents tactical blunders at search leaves.

Agency-weighted superposition evaluation

Because the owner chooses which candidate trajectory to play, a [Bishop, Queen] piece retains nearly Queen-level tactical utility while keeping the opponent guessing across multiple defensive lines.

4. Visual Tactical Diagrams

These responsive board diagrams illustrate the exact geometry of chain collapse and two-king endgame conversion without horizontal overflow on mobile or desktop viewports.

Diagram A: Ambiguity Preservation (Diagonal) vs. Chain Collapse (Straight)

87654efghAB/QQ!SLOT CASCADEA: [B, Q] → QQueen 1/1 lockedB: [R, Q] → RRook 2/2 lockedC: [R, N] → NAuto-collapsed
  • 1) e4 → h7 (3 squares diagonal): rules out Rook, preserves [B / Q] ambiguity
  • 2) h7 → h5 (2 squares straight): confirms Queen (1/1 slot locked)
  • Chain effect: unmoved B collapses to Rook; C collapses to Knight
Piece A on e4 with [Bishop, Rook, Queen] moves diagonally to h7 to eliminate Rook while keeping [Bishop, Queen] hidden. A follow-up straight move h7 → h5 confirms Queen, locking the single Queen slot and cascading through B ([Rook, Queen] → Rook) and C ([Rook, Knight] → Knight).

Diagram B: Two-King Endgame Shielding & Final King Collapse

8765cdefgK/QK/NRB/Q2-KING RULEd8 + g82 alive →no instant wing8 jumps → Nd8 = sole KingMate active!
  • d8 [K / Q] + g8 [K / N]: both pieces keep Black alive in a two-king state
  • White plan: force g8 to jump or slide 2+ squares, stripping its King bit
  • Result: d8 becomes the sole confirmed King and falls to the back-rank attack
While Black retains living King candidates on both d8 ([King, Queen]) and g8 ([King, Knight]), attacking d8 alone cannot end the game because g8 survives. White targets g8 to force a two-square move or Knight jump, stripping g8’s King candidate so d8 collapses into the sole checkmated King.

Continue Exploring Q-Gambit

Understand your first move

QUBE

Read the starting steps, learn to read candidates, try short exercises, and study our Strategy Library (two-king endgames & AI design) before signing in.

Scheduled maintenance

The Web and PC versions have scheduled maintenance every Tuesday, 11:00–14:00 Japan Standard Time (JST).

During maintenance, new sign-ins and new online games are paused. Ongoing games and offline practice remain available.

Check the in-game and official notices for current status, changes and additional maintenance.