From ad5e82bd162f4a6c3af22e82479f7f5b712ef331 Mon Sep 17 00:00:00 2001 From: Ramkumar Ethiraj <64294490+rmkr-dev@users.noreply.github.com> Date: Thu, 24 Sep 2026 16:01:32 +0000 Subject: [PATCH] Add Higher or Lower focus game MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simple 1–99 intuition game with streak tracking in localStorage. Wired into the games hub and README. --- README.md | 1 + assets/site.css | 42 +++++++++++ games/higher/index.html | 162 ++++++++++++++++++++++++++++++++++++++++ games/index.html | 6 +- 4 files changed, 210 insertions(+), 1 deletion(-) create mode 100644 games/higher/index.html diff --git a/README.md b/README.md index d256566..0cdefc8 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ The home page lists one **Games Hub** card (`games/`). Individual games live on - **Tap Order** (`games/order/`) — tap 1–9 in order on a 3×3 grid; best time - **Color Clash** (`games/colors/`) — Stroop-style: tap the ink color, not the word; best streak - **Odd One Out** (`games/odd/`) — four tiles, three match; tap the different shape or color; best streak +- **Higher or Lower** (`games/higher/`) — guess if the next number is higher or lower; best streak - **Casual Quiz** (`games/quiz/`) — multiple-choice on India, Tamil Nadu, science, technology, and more, plus a General mix. Switch topic or level anytime. Marks stay in `localStorage`. Questions live only in `games/quiz/questions.json`. #### How to add or change quiz questions diff --git a/assets/site.css b/assets/site.css index 22c434c..0388ffb 100644 --- a/assets/site.css +++ b/assets/site.css @@ -1113,6 +1113,43 @@ body[data-tool="collab"] .site-footer { display: none; } background: rgba(248, 113, 113, 0.12); } +/* Higher or Lower */ +.higher-stage { + display: flex; + flex-direction: column; + align-items: center; + gap: 1.1rem; + width: min(100%, 360px); + margin: 0 auto; +} +.higher-number { + margin: 0; + font-size: clamp(3.2rem, 14vw, 4.6rem); + font-weight: 900; + line-height: 1; + letter-spacing: -0.03em; + color: var(--color-gold, #ffc300); + min-height: 1.1em; + text-align: center; +} +.higher-number.ok { color: #4ade80; } +.higher-number.err { color: #f87171; } +.higher-actions { + display: flex; + flex-wrap: wrap; + gap: 0.75rem; + width: 100%; + justify-content: center; +} +.higher-btn { + flex: 1 1 calc(50% - 0.5rem); + min-height: 56px; + font-size: 1.05rem; + font-weight: 700; + padding: 0.85rem 1rem; +} + + @media (max-width: 420px) { .memory-grid, .slide-grid { @@ -1167,4 +1204,9 @@ body[data-tool="collab"] .site-footer { display: none; } height: 42px; } + .higher-btn { + min-height: 56px; + font-size: 1rem; + } + } diff --git a/games/higher/index.html b/games/higher/index.html new file mode 100644 index 0000000..ce44dd6 --- /dev/null +++ b/games/higher/index.html @@ -0,0 +1,162 @@ + + + + + + Higher or Lower | RMKR Toolkit + + + + + + + + +
+ ← Focus Games +

Higher or Lower

+

A number from 1–99 is shown. Guess whether the next number will be higher or lower. Keep a streak going.

+ +
+
+ Streak: 0 + Best: — +
+
+ +
+
+

Press Start, then guess Higher or Lower.

+
+
+ + +
+
+
+ + + diff --git a/games/index.html b/games/index.html index 43ac801..30aed73 100644 --- a/games/index.html +++ b/games/index.html @@ -4,7 +4,7 @@ Focus Games | RMKR Toolkit - + @@ -49,6 +49,10 @@

Color Clash

Odd One Out

Four tiles: three match, one differs in shape or color. Tap the odd one. Best streak stays local.

+ +

Higher or Lower

+

A number from 1–99. Guess if the next is higher or lower. Best streak stays local.

+

Casual Quiz

Multiple-choice on India, Tamil Nadu, science, tech, and more. Switch topic or level anytime.