TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Little Riddle – A minimalist word game powered by ChatGPT

2 点作者 jasondigitized9 个月前
My mom loves word games. Inspired by a old school word game called &quot;Road Toad&quot;, I built a super simple browser app that provides a &#x27;Little Riddle&#x27; to a two-word answer that always rhymes. If you are stuck, you can receive a hint or a letter. I built in &#x27;making and sharing&#x27; so my mom can send me and the family riddles she likes. I hope someone on HackerNews enjoys Little Riddle as much as my mom does. I am pretty happy with how it turned out.<p>For anyone interested in knowing what&#x27;s happening under the covers, I grabbed a bunch of popular nouns, verbs, and adjectives and then used some rhyming libraries to find words that rhymed with said popular words. I ran those rhyming words through the popular list and yanked out any obscure words. Once I had that list I manually went through that list and removed those rhyming pairs that didn&#x27;t really pop! like &quot;unusual textual&quot;.<p>After I had a list of good rhyming pairs, I asked ChatGPT 4o to step in and come up with a riddle for each of the rhyming pairs. Here is one of the prompts I used:<p>&quot;You are a clever game host. You will provide the players with a very brief sentence in json format that serves as a vague clue for two words that rhyme that the user must guess. Players have very good vocabularies. The clue must be a complete sentence but it should be short, tricky, and concise. This is very important: The first part of the sentence must refer to the first word. The second part of the sentence will refer to the second word. You should only supply the clue and not reference the game or instructions. The clue must not contain either of the rhyming words. It should be a difficult clue that can&#x27;t be easily guesses. Be very creative. The rhyming pair is: [rhyming pair]&quot;<p>I then used a thesaurus library to provide a list of clues to provide my mom if she got stuck.<p>That ultimately resulted in thousands of riddles that look something like: { riddle: &quot;big tiger&quot;, answer: &quot;fat cat&quot;, clues: [&#x27;voluptuous lion&quot;, &quot;large feline&quot;] }<p>After I had the data, I coded this up using Vue&#x2F;Nuxt and Tailwind. It&#x27;s hosted as a Cloudflare page and can hopefully withstand the huge wave of traffic Mefi Projects is going to send my way.<p>If anyone has any suggestions for more riddles or features, please let me know.

1 comment

confd9 个月前
This game is lots of fun.<p><pre><code> &quot;A favorite chilled beverage encounters jet propulsion&quot; DESIGNED REMIND </code></pre> Please help me understand this one.
评论 #41173148 未加载