Evaluating End-to-End Coding Capabilities of Large Language Models

    This article examines how to assess large language models’ end-to-end coding ability, using a minimal Minesweeper prompt as a stress test. It proposes a three-level capability model, lists hard review criteria for generated code, identifies engineering gaps between runnable output and maintainable software, and outlines a revised workflow for senior developers.

    Large language model (LLM) assistance in programming has moved from completing a few lines of a function to delivering a runnable application from a single requirement. For developers with more than a decade of experience, the real question is not whether a demo looks impressive, but whether, under an extremely brief requirement with almost no module decomposition, the model can produce an engineering artifact that is structurally complete, logically consistent, and implementable in detail—and how far such output is from maintainable, evolvable production code.

    1. Three Levels for Evaluating End-to-End Generation

    Model capability in programming scenarios should not be measured only by “can it produce code.” It is better to divide it into three levels.

    The first level is local completion: syntactically correct code with roughly appropriate API calls, suitable for boilerplate and small bug fixes. The second level is module-level implementation: given interfaces and constraints, the model can write functions or components with boundary handling, but humans still need to assemble and verify them. The third level is end-to-end delivery: starting from a single natural-language sentence, covering data models, UI, interactions, win/loss logic, timing, and reset in a closed loop, and ideally runnable on the first attempt.

    Over the past two years, the industry has generally been stuck at the second level: hallucinations, incomplete logic, and detail-level defects force developers to repeatedly decompose requirements and review code line by line. Once stable signs of the third level appear, the working mode shifts from “humans design and the model fills in blanks” to “humans define constraints and acceptance criteria, the model produces a first draft, and humans engineer it.” This does not mean lazy developers can win easily; it actually puts more pressure on requirement expression, risk prediction, and code review.

    2. Why Minimal Requirements Are a Double-Edged Sword

    Using a colloquial requirement such as “write a complete Minesweeper mini-app” as a stress test has a clear technical meaning: not providing board-size enumerations, mine density, left/right-click semantics, expansion recursion, flag and timer rules, and so on, is equivalent to handing domain knowledge, default conventions, and interaction details entirely to the model.

    If the model can still produce an implementation close to the classic game—rectangular board, random mine placement avoiding the first click, left-click reveal and right-click flag, recursive expansion of blank cells, adjacent-mine counting, win/loss determination, timer and restart—it shows that the model already has a structural prior for the task class of “complete mini-games,” rather than merely stitching together tutorial fragments.

    The risks are equally clear: default values may not match real products; boundaries (corner cells, wrongly placed flags, rapid repeated clicks, pause/restart races) may be omitted; the UI may be usable but lack accessibility, internationalization, or save support. Therefore, minimal prompts are suitable for probing the “upper bound,” not for direct use as production specifications. In engineering practice, it is still advisable to fill gaps with brief constraints: board specifications, first-click safety, touch versus mouse/keyboard differences, and whether players may continue viewing the board after failure.

    3. Hard Metrics for Reviewing a Complete Generated Codebase

    When facing thousands of lines generated in one pass, review should take priority over visual impression. The following checklist is recommended.

    Is the structure layered: are board state, random mine placement, expansion algorithm, rendering, and input handling separated, rather than all piled into a single script? Is state derivable: do each cell’s “unopened/opened/flagged” state and adjacent-mine count have a single source of truth, avoiding separate maintenance of UI and logic? Is randomness reproducible: can mine placement be controlled by a seed for testing and replay? Are interactions complete: are left/right-click (or long-press) mutually exclusive, can opened cells not be flagged again, and is “quick expansion” on number cells implemented according to the correct rules? Are win/loss conditions rigorous: all non-mine cells opened means win, hitting a mine means loss, and the timer stops at the end. Are failure paths safe: abnormal input, invalid coordinates, and repeated clicks should not cause crashes or state corruption.

    A schematic core state can be expressed with the following structure (language-independent, only describing responsibilities):

    1. Board: { rows, cols, mines, cells[][], started, ended, elapsed }
    2. Cell: { mine, adjacent, revealed, flagged }
    3. open(r,c): if flagged or ended -> ignore
    4. if mine -> explode
    5. else flood-fill zeros and reveal numbers
    6. toggleFlag(r,c): only on unrevealed
    7. checkWin(): revealed non-mine count == rows*cols - mines

    Only when generated code matches these invariants can it be called a “runnable finished product”; otherwise it is still demo-level assembly.

    4. Engineering Gaps from “It Runs” to “It Can Evolve”

    Even if the UI is highly faithful, there are usually several gaps to a maintainable engineering project.

    Testing gap: mine distribution, expansion connectivity, boundary cells, and consistency between flag count and remaining mine count all need repeatable test cases, not a few manual clicks. Configurability gap: difficulty levels, custom rows/columns and mine counts, themes, and animations should be externalized as configuration rather than hard-coded constants. Observability gap: key operation logs, performance (stack depth or queue implementation for large-board expansion), and error reporting are especially important when deployed in the cloud or containers. Security and supply chain: if generated code introduces dependencies, versions must be locked and license and vulnerability scans performed; for pure front-end implementations, random-number quality and cheating (for example, exposing the mine map through debugging) need attention. Collaboration gap: whether naming, comments, and module boundaries meet team standards determines whether the code can be modified later or can only be rewritten.

    Therefore, a reasonable expectation is: the model provides a high-completion first draft, while humans handle specification freeze, test nets, performance, and release. Treat one generation as design-review material, not as a reason to skip design.

    5. How Senior Developers Should Change Their Workflow

    The capability leap does not eliminate engineering; it only moves the engineering focus earlier. The process can be condensed into four steps.

    Constraints first: list must-have items and explicitly excluded scope, avoiding uncontrolled “big and complete” free play by the model. Establish invariant tests immediately after generation: write minimal cases for core rules, and feed failures back to the model or patch manually, rather than changing code by feel. Incremental evolution: first lock the rule engine, then change the skin, add leaderboards, or add multiplayer; never pile on features before rules are verified. Keep human final review: code involving randomness, recursion, concurrency, and resource release must be read by humans. On the cloud side, using object storage for replays, log services for match analysis, and monitoring/alerting for front-end error rates relies on general capabilities and does not change the fact that rule correctness is still guaranteed by business code.

    6. Conclusion

    End-to-end coding performance should be judged by whether the loop is complete, whether invariants hold, and whether default assumptions are acceptable—not by output speed or line count. When a colloquial requirement can produce a runnable classic mini-game skeleton, it shows that the model has clearly improved in structural priors and detail completion; at the same time, decomposing requirements, defining acceptance, adding tests, and driving evolution remain responsibilities that senior developers cannot outsource. Only by treating the model as a fast collaborator that needs specifications and review can “thousands of lines that run” become software that can be maintained long term, rather than a one-off demo.