One-Prompt HTML Mini-Games: A Practical Way to Evaluate LLM "Broad Coding" Ability

    This article presents a low-cost, repeatable method for evaluating how well large language models handle broad coding tasks: a single, information-dense prompt that asks for a self-contained HTML fighting game. It explains why this one prompt tests long-range code organization, visual expression, creative de-duplication, and autonomous decision-making; compares model tiers by their observable failure modes; shows how adding one anchoring sentence improves weaker models; and offers a checklist for turning test results into model selection decisions for individual developers and enterprise buyers.

    Background: From Vibe Coding to “Broad Coding”

    Over the past year, “vibe coding” — letting a model produce a runnable project from a loose description — has gone from novelty to daily practice for many developers. Most of that practice, however, stays at low complexity: generate a landing page, write a to-do list. Tasks at that level barely separate one model from another.

    A newer direction in the industry is “broad coding”: code is no longer the end product but the carrier for accomplishing a wider range of tasks. The model has to translate a natural-language intent into a complete, interactive, self-contained software artifact, and to show aesthetic judgment, structural design, and logical reasoning inside it. Flagship models built on loop-transformer-style architectures have also appeared, using parameter reuse and deep reasoning loops to reach the effective capacity of a much larger model at medium parameter counts. Once these models became available through coding subscription plans, the practical question for developers was immediate: what exactly is better than the previous generation, and how do I measure it?

    A Minimal Test That Actually Works

    Evaluating code ability usually means running benchmark leaderboards or full engineering scaffolds. Those approaches are rigorous, but for an individual developer they are expensive and slow to give feedback. In practice, a far more efficient option is a single prompt with very high information density:

    1. Write me an HTML web mini-game, something like King of Fighters.
    2. Keep the move sets simple, make the characters well-proportioned,
    3. and make sure no two characters share the same skills — the moves should feel original.

    The prompt looks casual, but it probes several capabilities at once:

    1. Long-range code organization. A fighting game involves a state machine, collision detection, animation frames, and input handling. The model has to produce several hundred lines of structured code in a single file.
    2. Visual expression. “Well-proportioned characters” forces the model to draw figures in pure code with Canvas or CSS, with no external assets available, which exposes its graphics-modeling ability directly.
    3. Creativity and de-duplication. “No two characters share the same skills” tests whether the model mechanically reuses classic templates such as fireballs and dragon punches, or produces genuinely differentiated move sets.
    4. Autonomous decision-making. The prompt deliberately leaves gaps: the model must decide the perspective, color scheme, controls, and win conditions on its own.

    One shot, no human intervention. The quality differences are immediately visible.

    Cross-Model Comparison: The Gap Is Larger Than Expected

    Running the same prompt across several models in a “naked” test — no external resources, no manual fixes — produces clear tiers.

    Tier one (newer flagship and lightweight models). These produce a structurally complete single-file game that runs in the browser as-is. The visuals show basic scene depth, lighting, and hit feedback. Characters assembled from geometric shapes still reveal intent in body proportions and per-action frame breakdown. Some lightweight models do fail at character modeling, drawing a fighter as an unrecognizable shape, while the scene, UI, and particle effects remain solid.

    Tier two (previous-generation or weaker models). Common failure modes:

    • Characters degrade into two color blocks sliding past each other, with no animation frames.
    • Skills differ only in name; the logic is identical (in every case, “a rectangle flies out”).
    • JavaScript contains undefined variables or a broken frame loop, and the page renders blank.
    • The “no duplicates” constraint is ignored, and the output is textbook template code.

    The value of this test is that the failure modes themselves form a capability profile. A blank page points to weak code correctness; broken characters point to weak visual-spatial reasoning; duplicated skills point to poor creativity and instruction following.

    Iteration Trick: If One Sentence Is Not Enough, Add an Anchor

    For weaker or unstable models, a practical trick is to append a concrete anchoring description to the prompt. For example, turn “make the characters well-proportioned” into “draw characters on Canvas with a head, torso, and segmented limbs, and give the arm a clear extension-and-retraction animation when punching.” In testing, adding that one sentence immediately improved modeling from “two monkeys fighting” to a recognizable humanoid fighter.

    The underlying pattern: the stronger the model, the better it fills in vague intent on its own; the weaker the model, the more it depends on explicit specifications. So how usable a single prompt is across different models is itself a ruler for measuring autonomous reasoning.

    Turning Test Results into a Selection Decision

    For individual developers, evaluate in this order:

    1. Runnability first. Does it run with zero modifications? This is the precondition for everything else.
    2. Maintainable structure. Is the code modular and clearly named? This determines the cost of later iteration.
    3. Creative ceiling. Compare move sets across several generations and check for output collapse.
    4. Iteration response. After one follow-up change request, does the model make a precise local edit or rewrite everything?

    For enterprise users, this kind of single-prompt test works as a pre-purchase smoke test: ten minutes is enough to screen out unqualified candidates before running deeper engineering evaluations on the finalists. If the business needs large-scale, stable model inference, the models can also be deployed on general-purpose cloud computing infrastructure — container platforms, GPU compute instances, together with monitoring, alerting, and logging services — for better control and cost management.

    Conclusion

    “Make a dream come true in one sentence” sounds like marketing copy, but a well-designed fighting-game prompt run as a one-shot test does make the generational leap in autonomous thinking, visual expression, and end-to-end delivery clearly visible. Rather than debating what a new model can do, developers are better off running a comparison round themselves: the results are far more convincing than any leaderboard.