Skip to content

Add Double Letter Slot Tour rarity and cached detection#1745

Open
tphummel wants to merge 1 commit into
mainfrom
ai/add-double-letter-slot-tour-feature
Open

Add Double Letter Slot Tour rarity and cached detection#1745
tphummel wants to merge 1 commit into
mainfrom
ai/add-double-letter-slot-tour-feature

Conversation

@tphummel
Copy link
Copy Markdown
Owner

@tphummel tphummel commented May 5, 2026

Motivation

  • Add a new derived rarity for puzzles that tour two letters (both letters appear in slots 1–5 across all guesses) and expose it in the reports and per-puzzle achievements.
  • Reuse the existing single-letter slot coverage work so double detection is efficient and cache-friendly.

Description

  • Added a new report page content/double-letter-slot-tour.md that lists puzzles with double-letter slot tours and clarifies the definition as coverage "across all guesses".
  • Extended layouts/partials/letter-counts.html to compute a _doubles list by combining already-detected _singles, avoiding a second scan of guess data.
  • Added a new partial layouts/partials/double-letter-guesses.html that returns puzzles containing one or more double-letter tours.
  • Wired the new rarity into the homepage (layouts/index.html), per-puzzle achievements (layouts/w/single.html) with badge 🔂, and p8s metrics output (layouts/index.p8s.txt), and clarified the letter-slot-tour page text.
  • Use partialCached for aggregating both single and double lists so results are cached and lookups are efficient.

Testing

  • Ran the unit test node static/tools/enhance/enrich-emoji.test.js and it completed successfully.
  • Attempted a Hugo build; asdf exec hugo failed in this environment because asdf is unavailable, and hugo --templateMetrics was started but did not complete within the execution timeframe.
  • Verified templates and partials were updated and the new pages/partials were added (content/double-letter-slot-tour.md, layouts/partials/double-letter-guesses.html, and layouts/partials/letter-counts.html).

Codex Task

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 5, 2026

Deploying wordle with  Cloudflare Pages  Cloudflare Pages

Latest commit: ce16d86
Status: ✅  Deploy successful!
Preview URL: https://0dd2e691.wordle-static.pages.dev
Branch Preview URL: https://ai-add-double-letter-slot-to.wordle-static.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant