From bb3cdfa8d27c257bce88c6af7bba6cbd79435351 Mon Sep 17 00:00:00 2001
From: Ramkumar Ethiraj <64294490+rmkr-dev@users.noreply.github.com>
Date: Sat, 17 Oct 2026 15:56:33 +0000
Subject: [PATCH] Add Number Forge target-number game
---
README.md | 1 +
assets/site.css | 158 +++++++++++
games/forge/index.html | 606 +++++++++++++++++++++++++++++++++++++++++
games/index.html | 6 +-
4 files changed, 770 insertions(+), 1 deletion(-)
create mode 100644 games/forge/index.html
diff --git a/README.md b/README.md
index 6f68786..f193842 100644
--- a/README.md
+++ b/README.md
@@ -99,6 +99,7 @@ The home page lists one **Games Hub** card (`games/`). Individual games live on
- **More Dots** (`games/more/`) — two panels of dots; tap Left, Equal, or Right for the side with more; counts get closer and view time shrinks with the streak; best streak
- **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
#### Casual Quiz (unlisted)
diff --git a/assets/site.css b/assets/site.css
index 2f4adf7..c47a426 100644
--- a/assets/site.css
+++ b/assets/site.css
@@ -1837,3 +1837,161 @@ body[data-tool="collab"] .site-footer { display: none; }
color: var(--color-accent);
}
.lv-lives { letter-spacing: 0.15em; }
+
+/* Number Forge */
+.nf-board {
+ display: flex;
+ flex-direction: column;
+ gap: 0.85rem;
+ width: 100%;
+}
+.nf-board[hidden] { display: none; }
+.nf-target {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 0.15rem;
+ padding: 0.7rem 0.75rem 0.8rem;
+ background: var(--color-card);
+ border: 1px solid var(--color-line);
+ border-radius: var(--radius);
+}
+.nf-target-label {
+ font-size: 0.72rem;
+ font-weight: 800;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+ text-align: center;
+}
+.nf-target-num {
+ font-size: clamp(2.2rem, 10vw, 3rem);
+ font-weight: 900;
+ line-height: 1.1;
+ color: var(--color-accent);
+ font-variant-numeric: tabular-nums;
+}
+.nf-tiles {
+ display: grid;
+ grid-template-columns: repeat(var(--count, 3), minmax(0, 84px));
+ justify-content: center;
+ gap: 0.5rem;
+ min-height: 64px;
+}
+.nf-tile {
+ min-width: 44px;
+ min-height: 64px;
+ padding: 0 0.15rem;
+ border-radius: 12px;
+ border: 1px solid var(--color-line);
+ background: linear-gradient(145deg, #1c2844, #121a2c);
+ color: var(--color-text);
+ font-family: inherit;
+ font-size: clamp(1.05rem, 5vw, 1.5rem);
+ font-weight: 800;
+ font-variant-numeric: tabular-nums;
+ overflow-wrap: anywhere;
+ cursor: pointer;
+ transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
+}
+.nf-tile:hover:not(:disabled) { border-color: rgba(255, 195, 0, 0.5); }
+.nf-tile:active:not(:disabled) { transform: scale(0.96); }
+.nf-tile:disabled { cursor: default; }
+.nf-tile.is-picked {
+ background: linear-gradient(145deg, #c9a000, #ffc300);
+ border-color: #ffc300;
+ color: var(--color-bg);
+}
+.nf-tile.is-hint {
+ outline: 2px dashed var(--color-accent);
+ outline-offset: 2px;
+}
+.nf-tile.is-goal {
+ background: linear-gradient(145deg, #15803d, #4ade80);
+ border-color: #86efac;
+ color: var(--color-bg);
+}
+.nf-tile.is-new { animation: nf-pop 0.22s ease-out; }
+@keyframes nf-pop {
+ from { transform: scale(0.82); }
+ to { transform: scale(1); }
+}
+.nf-ops {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 0.5rem;
+}
+.nf-op {
+ min-height: 56px;
+ border-radius: 12px;
+ border: 1px solid var(--color-line);
+ background: var(--color-card);
+ color: var(--color-text);
+ font-family: inherit;
+ font-size: 1.6rem;
+ font-weight: 800;
+ line-height: 1;
+ cursor: pointer;
+}
+.nf-op:hover:not(:disabled) { border-color: rgba(255, 195, 0, 0.5); color: var(--color-accent); }
+.nf-op:disabled { opacity: 0.35; cursor: default; }
+.nf-op.is-picked {
+ background: rgba(255, 195, 0, 0.16);
+ border-color: var(--color-accent);
+ color: var(--color-accent);
+}
+.nf-tools {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 0.45rem;
+}
+.nf-tools .btn { padding-left: 0.3rem; padding-right: 0.3rem; }
+.nf-log {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 0.35rem 0.5rem;
+ min-height: 1.6rem;
+ font-size: 0.8rem;
+ color: var(--color-muted);
+ font-variant-numeric: tabular-nums;
+}
+.nf-log li {
+ padding: 0.15rem 0.5rem;
+ border: 1px solid var(--color-line);
+ border-radius: 999px;
+}
+.nf-results {
+ padding: 1rem 1.1rem 1.1rem;
+ background: var(--color-card);
+ border: 1px solid var(--color-line);
+ border-radius: var(--radius);
+ text-align: center;
+}
+.nf-results[hidden] { display: none; }
+.nf-results-title {
+ margin: 0 0 0.75rem;
+ font-size: 1.15rem;
+ color: var(--color-accent);
+}
+.nf-results-list {
+ display: grid;
+ grid-template-columns: 1fr auto;
+ gap: 0.4rem 1rem;
+ margin: 0 0 1rem;
+ font-size: 0.88rem;
+ text-align: left;
+}
+.nf-results-list dt { color: var(--color-muted); }
+.nf-results-list dd {
+ margin: 0;
+ font-weight: 800;
+ color: var(--color-text);
+ font-variant-numeric: tabular-nums;
+}
+@media (prefers-reduced-motion: reduce) {
+ .nf-tile.is-new { animation: none; }
+}
diff --git a/games/forge/index.html b/games/forge/index.html
new file mode 100644
index 0000000..2571467
--- /dev/null
+++ b/games/forge/index.html
@@ -0,0 +1,606 @@
+
+
+
+
+
+ Number Forge | RMKR Toolkit
+
+
+
+
+
+
+
+ ← Focus Games
+ Number Forge
+ Combine number tiles two at a time to make the target. Start with plus and minus on three tiles; times and divide unlock as you climb.
+
+
+ How to play
+
+ Tap a number, tap a sign, then tap a second number. The two merge into their result.
+ Make any tile equal the target to clear the puzzle. You don't have to use every tile.
+ Results must be whole numbers above zero, so subtract the smaller number and only divide when it goes in evenly.
+ Journey: 15 puzzles over 5 tiers. Tiles go from 3 to 5, and × then ÷ unlock. You get 3 skips.
+ Blitz: 2 minutes. Each solve adds 5 seconds and a skip costs 10. Puzzles get harder every 3 solves.
+ Scoring: higher tiers are worth more. Finish at or under par (the fewest steps possible) for a bonus. In Journey, speed adds a bonus too. Clean solves in a row add up to +50%. A hint halves that puzzle's points.
+ Undo takes back one step, Reset goes back to the start of the puzzle, and Hint shows a step that works from where you are.
+ Keyboard: 1–5 pick tiles, + − * / pick the sign, Backspace or U undo, R reset, H hint, S skip, Esc clears, P pauses.
+ Each mode's best score stays in this browser only.
+
+
+
+
+ Journey · 15 puzzles
+ Blitz · 2 minutes
+
+
+
+
+ Puzzle : —
+ Time : 0s
+ Skips: 3
+ Score: 0
+ Best: —
+
+
+ Start
+ Pause
+
+
+ Pick a mode and press Start.
+
+
+
+
+
+ Target
+ ?
+
+
+
+ +
+ −
+ ×
+ ÷
+
+
+ Undo
+ Reset
+ Hint
+ Skip
+
+
+
+
+
Run complete
+
+
Play again
+
+
Paused
+
+
+
+
+
+
diff --git a/games/index.html b/games/index.html
index 513946a..0a82a76 100644
--- a/games/index.html
+++ b/games/index.html
@@ -4,7 +4,7 @@
Focus Games | RMKR Toolkit
-
+
@@ -117,6 +117,10 @@ Glow Grid
Echo Path
Watch a path wind across the grid, then trace it back. Stages grow longer, grids widen, combos build your score.
+
+ Number Forge
+ Combine number tiles with + − × ÷ to hit the target. A 15-puzzle Journey or a 2-minute Blitz, with par bonuses and hints.
+
How it works