Odd One Out
+Four tiles appear. Three match; one is different. Tap the odd one. Keep a streak going.
+ +Press Start, then tap the tile that does not match.
+From 7e8db0fe783216130e8e29262890a31684503460 Mon Sep 17 00:00:00 2001 From: Ramkumar Ethiraj <64294490+rmkr-dev@users.noreply.github.com> Date: Tue, 22 Sep 2026 16:19:30 +0000 Subject: [PATCH] Add Odd One Out focus game Four-tile visual discrimination game with streak tracking, wired into the games hub, README, and site styles. --- README.md | 1 + assets/site.css | 77 +++++++++++++++++ games/index.html | 6 +- games/odd/index.html | 199 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 282 insertions(+), 1 deletion(-) create mode 100644 games/odd/index.html diff --git a/README.md b/README.md index 8b3b669..d256566 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ The home page lists one **Games Hub** card (`games/`). Individual games live on - **Reaction Tap** (`games/reaction/`) — wait for gold, tap fast; best average ms - **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 - **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 2f015fa..22c434c 100644 --- a/assets/site.css +++ b/assets/site.css @@ -1053,6 +1053,66 @@ body[data-tool="collab"] .site-footer { display: none; } color: var(--color-error); } + +/* Odd One Out */ +.odd-grid { + display: grid; + grid-template-columns: repeat(2, minmax(120px, 1fr)); + gap: 0.75rem; + width: min(100%, 360px); + margin: 0 auto; +} +.odd-tile { + display: flex; + align-items: center; + justify-content: center; + min-height: 96px; + min-width: 0; + padding: 0.85rem; + border-radius: 16px; + border: 1px solid var(--color-line); + background: var(--color-card); + cursor: pointer; + user-select: none; + -webkit-tap-highlight-color: transparent; + transition: border-color 0.12s ease, background 0.12s ease, transform 0.08s ease; +} +.odd-tile:hover:not(:disabled) { + border-color: rgba(255, 195, 0, 0.55); +} +.odd-tile:active:not(:disabled) { + transform: scale(0.98); +} +.odd-tile:disabled { cursor: default; } +.odd-shape { + display: block; + width: 52px; + height: 52px; + flex: 0 0 auto; + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22); +} +.odd-shape--circle { + border-radius: 50%; +} +.odd-shape--square { + border-radius: 10px; +} +.odd-shape--triangle { + width: 54px; + height: 48px; + border-radius: 0; + clip-path: polygon(50% 6%, 4% 94%, 96% 94%); + box-shadow: none; +} +.odd-tile.is-correct { + border-color: rgba(74, 222, 128, 0.55); + background: rgba(74, 222, 128, 0.12); +} +.odd-tile.is-miss { + border-color: rgba(248, 113, 113, 0.7); + background: rgba(248, 113, 113, 0.12); +} + @media (max-width: 420px) { .memory-grid, .slide-grid { @@ -1089,5 +1149,22 @@ body[data-tool="collab"] .site-footer { display: none; } padding: 0.75rem 0.85rem; font-size: 0.98rem; } + .odd-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + width: 100%; + gap: 0.65rem; + } + .odd-tile { + min-height: 84px; + padding: 0.7rem; + } + .odd-shape { + width: 46px; + height: 46px; + } + .odd-shape--triangle { + width: 48px; + height: 42px; + } } diff --git a/games/index.html b/games/index.html index c9ee4eb..43ac801 100644 --- a/games/index.html +++ b/games/index.html @@ -4,7 +4,7 @@
A color word in the wrong ink. Tap the ink color, not the word. Best streak stays local.
+ +Four tiles: three match, one differs in shape or color. Tap the odd one. Best streak stays local.
+Multiple-choice on India, Tamil Nadu, science, tech, and more. Switch topic or level anytime.
diff --git a/games/odd/index.html b/games/odd/index.html new file mode 100644 index 0000000..8e2782a --- /dev/null +++ b/games/odd/index.html @@ -0,0 +1,199 @@ + + + + + +Four tiles appear. Three match; one is different. Tap the odd one. Keep a streak going.
+ +Press Start, then tap the tile that does not match.
+