A fresh puzzle every morning without shipping wrong answers

APIKeyAnthropicFree · Updated 2026-11-22 · 8 min read

Balance scale comparing a pineapple and a brick
The answer comes from your data; the model writes the question.

Small daily games are a favourite weekend project: guess which of two objects weighs more, estimate a quantity, predict the outcome of a scenario, find the odd one out. One developer described building several such games in a few days with a coding assistant and cheap helper agents. Writing the game code turned out to be the easy part. The hard part is content: every day needs a new puzzle, and every puzzle needs an answer that is actually right.

This guide is for indie developers and hobbyists who want a language model to help fill a daily puzzle calendar without publishing mistakes. It covers how to design puzzles a model can generate reliably, how to verify answers with data instead of trusting the model, how to build a reviewed backlog weeks ahead, and how to run the whole pipeline on a free API before you consider paying for a larger model.

Frequently asked questions

Can a language model generate puzzles reliably?

It can generate many candidates quickly, and many will be good. It cannot guarantee the answers are correct, because it predicts plausible text rather than checking facts. Treat the model as a candidate generator and verify separately.

What kinds of daily puzzles suit LLM generation?

Puzzles whose answers can be checked against data or rules: comparisons with known values, word puzzles with dictionary checks, logic puzzles solvable by code. Puzzles that rely on obscure trivia are risky.

How does a generated puzzle differ from a curated one?

A curated puzzle was chosen and checked by a person. A generated one starts as a model suggestion. With verification and review, generated puzzles can be just as good, but the checking step is what makes them so.

Why do models get numeric comparisons wrong?

Weights, sizes and dates for less common objects appear rarely in training text, so the model's recollection is weak and it may answer confidently anyway. Ground those values in a dataset you trust.

Which is better for puzzle writing, a large or a small model?

Large commercial models write wittier clues and make fewer factual slips. A smaller open model is fine for generating many candidates, especially when a verifier filters them. Quality per puzzle matters less when you choose from many.

How far ahead should I generate?

A backlog of several weeks protects you from bad days, API outages and holidays. It also gives time for review. Generating each puzzle at midnight for immediate publication leaves no room to catch mistakes.

Do players care if puzzles are AI-generated?

Some do. Being transparent about using a model for drafting, while a person reviews every puzzle, is honest and usually well received. Publishing wrong answers damages trust far more than disclosure does.

Can I run this pipeline without an API key?

Yes, on a keyless endpoint such as the one described here. Generation runs at a few requests per minute easily within its per-IP limits, and you can switch to a paid model later by changing the base URL.

Step by step

  1. Choose a checkable format — Design each game so its answer comes from a table or a function you control, not from the model.
  2. Build the reference data — Collect a few hundred items with values, units, sources and difficulty tags in a versioned file.
  3. Generate candidates — Pick item combinations in code and ask the model only for question text and explanations, as JSON.
  4. Verify automatically — Reject candidates whose text contradicts the computed answer, adds unknown numbers or repeats recent puzzles.
  5. Review and schedule — Approve a fortnight at a time, assign publication dates and keep a pool of evergreen fallbacks.

Design puzzles the model can make and you can check

Start from verification, not from creativity. For each game, ask: how will I know the answer is right without trusting the model? If the answer is look it up in this table or run this function, the game is a good fit for generation. If the answer is I would have to research it, the model will eventually publish a wrong answer for you.

A weight comparison game is a good example. If you keep a table of objects with weights from reliable sources, the model's job becomes choosing interesting pairs and writing the prompt text. The answer comes from the table, so it is always right.

Separate the creative and factual parts

Let the model write the setup, the flavour text and the explanation shown after a guess. Let your data or code supply the correct answer. The model never decides who wins; it only describes the match-up.

Prefer closed sets

Puzzles drawn from a fixed list you control, such as your object table, a word list or a set of recipe categories, are far easier to verify than open-ended trivia about the whole world.

Build the reference data first

A few hundred well-chosen entries go a long way. For a comparison game, each row needs a name, a value, a unit, a source note and a difficulty tag. The model can help draft the list of candidate objects, but values should come from sources you can cite, not from the model's memory.

Store the data as CSV or JSON in your repository. That makes changes reviewable and lets your generator, verifier and game all read the same file.

Ambiguity kills puzzles

Which is heavier, a bicycle or a television? depends on the bicycle and the television. Choose specific items with a typical value and a clear margin between them, so a reasonable player can agree with the answer.

Let the model suggest, not supply

Asking a model for a list of everyday objects that would make fun comparisons is a fine use. Asking it for their weights is not. Treat every suggested item as a lead that you look up and record with a source before it enters the table.

  • Record the unit with every value to avoid mixing grams and kilograms.
  • Keep a short source note so you can recheck a value if a player disputes it.
  • Tag items by category and difficulty to balance the weekly mix.
  • Avoid items whose values vary widely, such as animals of very different breeds.
Recipe box with index cards and coloured dividers
A small, sourced reference table is the backbone of the game.

Generating candidates with a model

With data in place, the model's prompt is straightforward: here are two items from the table, write a short, playful question and a one-sentence explanation that will be revealed after the guess. Ask for JSON so your code can store fields separately.

The script below picks pairs with a clear margin, asks free-ai for the text, and saves candidates for review. The correct answer is computed in code.

Generate more than you need

Create three or four candidates for every slot in the calendar. Choosing the best of several is easier and gives better results than polishing one mediocre draft.

import json, random, time
from openai import OpenAI

client = OpenAI(base_url="https://api.apikeyanthropicfree.com/v1", api_key="free")

ITEMS = [
    {"name": "a standard brick", "grams": 2300},
    {"name": "a basketball", "grams": 620},
    {"name": "a pineapple", "grams": 1500},
    {"name": "a laptop", "grams": 1400},
    {"name": "a house cat", "grams": 4200},
]

def pick_pair():
    while True:
        a, b = random.sample(ITEMS, 2)
        hi, lo = max(a["grams"], b["grams"]), min(a["grams"], b["grams"])
        if hi / lo >= 1.3:  # clear margin only
            return a, b

candidates = []
for _ in range(5):
    a, b = pick_pair()
    heavier = a if a["grams"] > b["grams"] else b
    prompt = (
        f"Write a playful one-line question asking which is heavier: {a['name']} or {b['name']}. "
        f"Then a one-sentence explanation revealing that {heavier['name']} is heavier. "
        'Reply with JSON only: {"question": "...", "explanation": "..."}'
    )
    r = client.chat.completions.create(model="free-ai", temperature=0.8,
                                       messages=[{"role": "user", "content": prompt}])
    raw = r.choices[0].message.content.strip().strip("`").removeprefix("json").strip()
    text = json.loads(raw)
    candidates.append({"a": a["name"], "b": b["name"], "answer": heavier["name"], **text})
    time.sleep(1.1)

json.dump(candidates, open("candidates.json", "w", encoding="utf-8"), indent=1)
print(len(candidates), "candidates saved")

Verifying what the model wrote

Even when your code supplies the answer, the model's text can contradict it, for example an explanation that names the wrong item as heavier or invents a precise figure. A verifier pass checks the generated text against the facts before anything reaches the review queue.

Simple checks catch most problems: the explanation must mention the correct answer, must not mention numbers that are not in your table, and the question must name both items. Anything that fails is discarded automatically.

Rule-based checks first

String and number checks in code are fast, free and never fooled. Use them for everything they can cover before considering a second model as a judge.

A model judge for fuzzy issues

For questions like is this clue misleading or is the tone appropriate for all ages, a second model call with a strict rubric can flag candidates for closer human review. It should flag, not decide.

Check for repeats

Keep a history of published pairs and questions. Reject candidates that repeat a pair from the last few months or whose wording is too similar to a recent puzzle. Players notice repetition quickly.

Sieve separating beans from stones into a bowl and plate
Automatic checks discard candidates that contradict the facts.

A human review queue that stays small

Automation reduces the volume; a person still approves what goes live. A simple review page or even a spreadsheet with approve and reject columns is enough. Reviewing a week of puzzles takes minutes when candidates are already verified and pre-sorted.

Record why you reject candidates. Patterns in rejections tell you how to improve prompts, data or checks. If most rejections are about tone, adjust the prompt; if they are about ambiguous pairs, tighten the margin rule.

Approve in batches

Set aside one short session a week to approve the next fortnight. Batching keeps quality consistent and avoids the temptation to publish something unreviewed on a busy morning.

Scheduling a backlog and handling bad days

Store approved puzzles with a publication date. The game reads today's puzzle from that schedule, never from a live model call. This makes the game fast, independent of API availability and identical for every player, which matters for daily games where people compare results.

Keep a reserve of evergreen puzzles for emergencies: a holiday, a broken pipeline, a free API that is busy for an evening. With a backlog, an outage is a non-event.

Time zones and the daily reset

Decide whether the day changes at a fixed UTC time or at each player's local midnight. Either works; mixing them confuses players. Fixed UTC is simpler for shared results.

  • Publish from a schedule, not from live generation.
  • Keep at least two weeks of approved puzzles ahead.
  • Hold a separate pool of evergreen fallbacks.
  • Log which puzzle ran on which date for later disputes.
Tear-off desk calendar beside a stack of sealed envelopes
A reviewed backlog makes every morning predictable.

Running the pipeline on a free API

Generating a few dozen candidates a week is a light load, well within the free endpoint's per-IP limits of one request per second, bursts of three, and 10,000 requests per day. The API at https://api.apikeyanthropicfree.com/v1 needs no key and serves free-ai, an independent open-weight model of about 35B parameters. This site is not affiliated with Anthropic, and the model is not Claude.

If you find the clues flat or the humour forced, try the same prompts on a larger commercial model. Claude and similar models tend to write sharper, more varied copy. Because the facts come from your data and the checks run in code, switching models changes style, not correctness. For related patterns, see why model-produced food numbers need grounding and why agents claim success they did not achieve, which applies when helper agents gather your data.

Cheap helpers, careful checks

Using small, cheap helper agents to research items is tempting. They miss things and occasionally invent values. Use them to propose items, never to supply final values without a source.

Write a short content policy

Decide in advance which topics are off limits for an all-ages game, such as tragedies or divisive politics, and encode them in both the prompt and the verifier.

Try the free API

Send a test prompt from the chat box on the home page: no key, no account and no card, only the published per-IP limits.

Read also