From 38be9be6e4b98fb2b3776e3609e4c26c0e240921 Mon Sep 17 00:00:00 2001 From: Ramkumar Ethiraj <64294490+rmkr-dev@users.noreply.github.com> Date: Sun, 18 Oct 2026 15:55:46 +0000 Subject: [PATCH] Add Circuit Link wiring puzzle --- README.md | 1 + assets/site.css | 131 +++++++ games/circuit/index.html | 727 +++++++++++++++++++++++++++++++++++++++ games/index.html | 6 +- 4 files changed, 864 insertions(+), 1 deletion(-) create mode 100644 games/circuit/index.html diff --git a/README.md b/README.md index f193842..ccf2bb2 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ The home page lists one **Games Hub** card (`games/`). Individual games live on - **Glow Grid** (`games/glow/`) — 12-level logic puzzle from 3×3 to 5×5; each tap flips a cell and its four neighbours, light every cell; par-move and time bonuses, pause and restart; best total score - **Echo Path** (`games/echo/`) — staged memory game; watch a path of adjacent cells light up, then trace it in order; one step longer per stage, grid grows 3×3 → 5×5, three lives, combo multiplier up to ×5, pause and restart; best score - **Number Forge** (`games/forge/`) — target-number puzzle; tap a tile, a sign, and a second tile to merge them, and make the target; Journey runs 15 puzzles over 5 tiers (3 → 5 tiles, × then ÷ unlock, 3 skips), Blitz is 2 minutes (+5s per solve); par and speed bonuses, clean-streak bonus, undo/reset/hint, results summary; best score per mode +- **Circuit Link** (`games/circuit/`) — rotate-the-tiles wiring puzzle; tap tiles to turn them until every tile is fed from the gold core with no loose ends; Journey runs 12 circuits over 4 tiers (4×4, 5×5, 6×6, 6×8, 3 skips), Blitz is 3 minutes (+10s per solve), Daily is one date-seeded 6×6 board; turn-direction toggle, lock mode, undo/reset/hint, par-tap and speed bonuses, clean-streak bonus, results summary; best score per mode #### Casual Quiz (unlisted) diff --git a/assets/site.css b/assets/site.css index c47a426..fe3b48b 100644 --- a/assets/site.css +++ b/assets/site.css @@ -1995,3 +1995,134 @@ body[data-tool="collab"] .site-footer { display: none; } @media (prefers-reduced-motion: reduce) { .nf-tile.is-new { animation: none; } } + +/* Circuit Link */ +.cl-stage { width: min(100%, 440px); } +.cl-board { + display: flex; + flex-direction: column; + gap: 0.75rem; + width: 100%; +} +.cl-board[hidden] { display: none; } +.cl-strip { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 0.3rem 1rem; + font-size: 0.8rem; + font-weight: 700; + color: var(--color-muted); +} +.cl-strip strong { + color: var(--color-accent); + font-variant-numeric: tabular-nums; +} +.cl-grid { + display: grid; + grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); + gap: 3px; + padding: 4px; + background: var(--color-input); + border: 1px solid var(--color-line); + border-radius: var(--radius); + transition: border-color 0.2s ease, box-shadow 0.2s ease; +} +.cl-grid:empty { min-height: 220px; } +.cl-grid.is-solved { + border-color: rgba(74, 222, 128, 0.75); + box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25); +} +.cl-cell { + position: relative; + aspect-ratio: 1; + min-width: 0; + padding: 0; + border: 1px solid var(--color-line); + border-radius: 8px; + background: linear-gradient(145deg, #1c2844, #121a2c); + color: #55627a; + cursor: pointer; + overflow: hidden; +} +.cl-cell:hover:not(:disabled) { border-color: rgba(255, 195, 0, 0.5); } +.cl-cell:disabled { cursor: default; } +.cl-cell.is-lit, +.cl-cell.is-src { color: var(--color-accent); } +.cl-cell.is-locked { + background: linear-gradient(145deg, #26334f, #1a2540); + border-color: rgba(255, 195, 0, 0.4); +} +.cl-cell.is-locked::after { + content: ""; + position: absolute; + top: 4px; + right: 4px; + width: 6px; + height: 6px; + border-radius: 50%; + background: var(--color-accent); +} +.cl-cell.is-hint { + outline: 2px dashed var(--color-accent); + outline-offset: -4px; +} +.cl-pipe { + display: block; + width: 100%; + height: 100%; + pointer-events: none; + transition: transform 0.14s ease; +} +.cl-pipe line { stroke: currentColor; stroke-width: 16; } +.cl-joint { fill: currentColor; } +.cl-lamp { fill: var(--color-bg); stroke: currentColor; stroke-width: 7; } +.cl-cell.is-lit .cl-lamp { fill: var(--color-accent); stroke: #fff3c4; } +.cl-core { fill: var(--color-accent); stroke: #fff3c4; stroke-width: 6; } +.cl-grid.is-solved .cl-cell { color: #86efac; } +.cl-grid.is-solved .cl-lamp, +.cl-grid.is-solved .cl-core { fill: #4ade80; stroke: #dcfce7; } +.cl-tools { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 0.45rem; +} +.cl-tools .btn { padding-left: 0.3rem; padding-right: 0.3rem; } +.cl-tools .cl-wide { grid-column: span 2; } +.cl-tools .btn[hidden] { display: none; } +.cl-toggle.is-on { + background: rgba(255, 195, 0, 0.16); + border-color: var(--color-accent); + color: var(--color-accent); +} +.cl-results { + padding: 1rem 1.1rem 1.1rem; + background: var(--color-card); + border: 1px solid var(--color-line); + border-radius: var(--radius); + text-align: center; +} +.cl-results[hidden] { display: none; } +.cl-results-title { + margin: 0 0 0.75rem; + font-size: 1.15rem; + color: var(--color-accent); +} +.cl-results-list { + display: grid; + grid-template-columns: 1fr auto; + gap: 0.4rem 1rem; + margin: 0 0 1rem; + font-size: 0.88rem; + text-align: left; +} +.cl-results-list dt { color: var(--color-muted); } +.cl-results-list dd { + margin: 0; + font-weight: 800; + color: var(--color-text); + font-variant-numeric: tabular-nums; +} +@media (prefers-reduced-motion: reduce) { + .cl-pipe, .cl-grid { transition: none; } +} diff --git a/games/circuit/index.html b/games/circuit/index.html new file mode 100644 index 0000000..e7438cd --- /dev/null +++ b/games/circuit/index.html @@ -0,0 +1,727 @@ + + + + + + Circuit Link | RMKR Toolkit + + + + + + +
+ ← Focus Games +

Circuit Link

+

Every tile is a piece of wire. Turn them until the whole board is one circuit fed by the gold core, with every lamp lit and no loose ends.

+ +
+ How to play + +
+ +
+ + + +
+ +
+
+ Circuit: — + Time: 0s + Skips: 3 + Score: 0 + Best: — +
+
+ + +
+
+

Pick a mode and press Start.

+ +
+
+
+
+ Tier — + Par — + Taps 0 + Lamps — +
+
+
+ + + + + + +
+
+ + +
+
+
+ + + diff --git a/games/index.html b/games/index.html index 0a82a76..0693376 100644 --- a/games/index.html +++ b/games/index.html @@ -4,7 +4,7 @@ Focus Games | RMKR Toolkit - + @@ -121,6 +121,10 @@

Echo Path

Number Forge

Combine number tiles with + − × ÷ to hit the target. A 15-puzzle Journey or a 2-minute Blitz, with par bonuses and hints.

+ +

Circuit Link

+

Turn wire tiles until every lamp is wired back to the gold core. A 12-circuit Journey, a 3-minute Blitz, and a Daily board.

+

How it works