Skip to content

Add Boss Fight mode - #4

Merged
devin-ai-integration[bot] merged 5 commits into
mainfrom
devin/1795103718-boss-fight
Nov 19, 2026
Merged

devin-ai-integration[bot] merged 5 commits into
mainfrom
devin/1795103718-boss-fight

Conversation

@Coobyk

@Coobyk Coobyk commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

New built-in Boss Fight (Library): Black's whole army is fused into one winged, red-eyed boss facing White's classic 16 pieces — based on the "Elden Ring boss" chess clip.

  • Boss: one Black piece on e8, moves/captures like queen + knight (amazon), 3 lives, not royal (ignores check).
  • New generic PieceType.lives / PieceInstance.lives. Capturing a piece with >1 lives: victim.lives--, victim stays, attacker is destroyed. Last life → normal capture. Atomic/explosion blasts cost one life instead of killing. Kings can't strike a multi-life piece.
  • Win: White by eliminating Black (slaying the boss); Black by checkmating White.
  • Lives are included in bot hash/eval/terminal scoring, repetition keys, undo/replay, and variantCodec (which now also keeps app-relative images, so shared links keep the boss art).
  • UI: custom public/pieces/boss/boss.svg, rendered ~1.5x oversized with red eye glow, a lives badge, and a hit flash.

Tests: src/engine/boss.test.ts (hit progression, amazon moves, outcomes, effects, replay, codec, bot). tsgo -b, npm test (155 passed), oxlint, build all pass; played it in the browser vs the bot.

Note: the boss is strong — careless openings (e.g. 1.e4 2.a3) can get mated by a knight-check from f3, since hitting the boss doesn't remove a checker.

After first hit


GoonBot opened this PR for Coobyk
Implemented in session Add the chess mode from the video
Review with Devin · Open in Devin Desktop


@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Browser QA passed: the Boss Fight Library entry opens with the boss art and a 3/3 lives badge. Lives went 3→2→1 as the first two attackers were sacrificed, and the third hit removed the boss for a White win. Undo restored a hit, the Black bot played to checkmate, Share → Link kept the art, and Classic is unchanged. A king may take the boss only on its last life (normal capture); sacrificial king hits are blocked by design.

Recording

Written by Devin

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 4 findings. Devin automatically fixed all 4 findings.

Fixed by Devin (4)
  • Compulsory hunts permit fatal king strikes — sacrificesRoyal now applied in both Predator compulsory branches.
  • Existing archive statistics become unreachable — Default fields omitted; classic packs byte-identically to main (snapshot test).
  • Unrecognized wins after sacrificial captures — detectOutcome now handles mover elimination and defender points after a hit.
  • Forbidden royal hits cause false checkmate — Forbidden royal hits no longer count as forced captures.

View findings in Devin Review · Follow Devin's work

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit 12bdca1 into main Nov 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant