THE KING'S RULE — HARDER CYPHERS EDITION
=========================================
How to open, and what is in this zip.
Run time: everything here is offline-safe except where noted.


1. THE GAME — JUST DOUBLE-CLICK IT
----------------------------------
    game.html

That is the full 9-chamber game in HTML5 (it needs the assets/ folder that
sits next to it — keep them together). Works offline, in any modern browser,
no plugins, no internet.

The flow is the original one, screen by screen, with nothing stacked or
overlapping:

    INTRO  ->  ENTER THE CASTLE (rules)  ->  CHAMBER 1 ... CHAMBER 9
           ->  ACCESS GRANTED  (reward screen after a correct answer, ~1.2 s)
           ->  CHAMBER CLEARED  (press ENTER)
           ->  ... repeat for all nine chambers ...
           ->  THE KING  ->  GAME OVER  ->  CREDITS  ->  INTRO again

    A third wrong guess shows the guard's failure screen, plays the
    kick-out / dungeon / execute animation, then GAME OVER and CREDITS.


2. THE SWF PORT — SAME GAME, FLASH
----------------------------------
    kings_rule.html     <-- double-click this one (single file, 1.0 MB)

It is the .swf embedded inside a page with the Ruffle Flash emulator, so it
plays in Chrome / Edge / Firefox / Safari. Click once on the game area, then
press ENTER.

    kings_rule.swf      <-- the raw Flash file, for Ruffle or Adobe Flash Player
                            MD5 c105ee1b24f0d0c9ad90b827b6e9260c   (782,819 bytes)

Why did the .swf open in Winamp on your machine? Windows has .swf associated
with Winamp there, so double-clicking handed a Flash movie to an audio player.
The file itself is fine — use kings_rule.html and you never touch that
association.

Internet: kings_rule.html pulls Ruffle from a CDN on first load. If you have no
connection, play game.html instead — it is fully local.


3. HOW IT PLAYS NOW (what changed in this build)
--------------------------------------------------
The old build rolled a random rule per room and hid the rule entirely, so some
rooms could not be reasoned out at all. That is fixed:

  * One rule per chamber, always in the same order:
      1 add      2 subtract   3 double    4 halve
      5 squares  6 fibonacci  7 primes    8 double-then-subtract
      9 THE KING - his own rule, every guess denied
  * Difficulty rises exponentially: each chamber starts about 1.9x higher than
    the last (100-250, 190-475, 368-896, 685-1249, 1296-3249, 2476-6190,
    4721-9929, 8938-9999). Chamber 1 is a warm-up; chamber 8 is the full
    4-digit scale. Nothing is ever too easy and nothing is ever unfair.
  * No repeated rooms. Every room you are dealt is remembered (the last 400),
    and the game draws another if it has seen it before - chambers 3 and 5 are
    the smallest pools at 87 and 66 rooms, everything else runs to hundreds or
    thousands, so the same three keys practically never come back.
  * The rule is the warden's secret - nothing is printed on the wall. Press ?
    and the warden gives you a hint: the rule, plus the working applied to your
    own three keys (never the answer itself). It costs nothing, it never costs
    a strike, and ? again hides it.
  * A wrong guess costs a strike but THE KEYS DO NOT CHANGE. You get all three
    tries on the same three numbers, so the arithmetic is always finishable.
  * Every warden speaks: three taunts (one per strike) and its own two-line
    cast-out speech. The King says "OFF WITH HIS HEAD."

Example rooms, one per chamber, exactly as the engine deals them:
           98   108   118  ->  128         (add 10)
          322   302   282  ->  262         (subtract 20)
           48    96   192  ->  384         (double)
         5712  2856  1428  ->  714         (halve)
         1681  1764  1849  ->  1936        (next square)
          203  1790  1993  ->  3783        (sum of the two before)
         6983  6991  6997  ->  7001        (consecutive primes)
         1177  2332  4642  ->  9262        (double, then subtract 22)


4. CONTROLS
-----------
    0-9        type a digit (up to four)
    ENTER      submit a guess / advance a screen
    BACKSPACE  delete a digit
    ?          hint — the warden tells you the rule + the working


5. FILES
--------
    game.html            HTML5 game (harder cyphers) — double-click
    assets/              10 images used by game.html — keep next to it
    kings_rule.html      SWF port in a single page — double-click
    kings_rule.swf       the raw Flash file
    README.md            technical notes on how the SWF was built
    game.yaml            machine-readable game info: rules, screen flow,
                         chambers, cypher patterns, difficulty table
    meta.yaml            machine-readable package info: version, artifacts,
                         checksums, requirements, verification, changelog

Nothing is installed, nothing is written to your disk.
