Testing New-Generation LLMs for Web Development: Capabilities and Methodology
A hands-on evaluation of how current large language models handle full web application prototypes, from desktop-style UIs to real-time strategy games. It covers where models still fall short (drag boundaries, focus management, glass effects, responsive behavior), how to write acceptance criteria instead of vague prompts, why the same model performs differently across environments, and what developers should verify before delivery.
1. From Code Generation to Building Runnable Applications
In recent years, the focus of LLM-assisted development has shifted from simple code completion and style generation toward building complete application prototypes. Instead of asking for “a button” or “a layout snippet,” users now describe an entire application, including its visual style, interaction behavior, business rules, and operating model.
This kind of request raises the bar considerably. A model needs to:
- Understand natural-language requirements: identify what the user actually cares about, rather than mechanically extracting keywords.
- Decompose the system: split pages, state, events, data structures, and algorithms into executable modules.
- Generate runnable code: the interface must exist, and the core interactions must actually work.
- Handle iterative feedback: revise based on runtime results instead of starting over each time.
- Balance visuals and engineering quality: get close to the target style without producing unmaintainable code.
In practice, newer models already show strong general capability on complex web prototypes, but “able to generate” is not the same as “able to deliver reliably.” Visual fidelity, interaction completeness, edge cases, and runtime performance still require developer verification.
2. Desktop-Style Web Test: Visual Understanding Matters More Than Code Volume
A typical test task: recreate the visual style of a classic desktop operating system as a web desktop with draggable windows, plus window switching, glassmorphism, button states, and multi-window management.
On the surface this is front-end page building. In reality it spans several layers:
- Layout of the desktop background and window containers;
- Window dragging, focus, and z-order switching;
- Window controls such as minimize, maximize, and close;
- Semi-transparent backgrounds, blur, shadows, and highlights;
- State management across multiple windows;
- Window-switch animations and keyboard operation;
- Adaptive behavior across different screen sizes.
Models usually produce a basic version quickly, but the first output tends to have obvious problems. Windows may move, yet drag boundaries are handled poorly; buttons may look right but lack complete state logic; transparency may be implemented as a simple opacity reduction with no background blur or depth; and focus relationships can become confused when several windows are open at once.
So evaluating this kind of output cannot stop at “the code runs.” Acceptance should also cover the following dimensions.
2.1 Interaction Consistency
While dragging, the pointer’s relative offset within the window must be preserved, with no sudden jumps. Clicking a window should raise its z-order and give it focus automatically. Closing a window should clean up the related state.
2.2 Visual Hierarchy
Glassmorphism is not just a transparent background. A convincing implementation usually combines background blur, border highlights, shadows, gradients, and foreground/background contrast to create depth.
2.3 Device Adaptation
Desktop-style layouts are easy on wide screens but can break on narrow ones: windows extending beyond the viewport, drag areas out of view, overlapping buttons. Generated code must account for minimum window sizes and a responsive strategy.
2.4 Controllable Animation
Too much animation hurts efficiency and can cause performance problems. Window switching, minimizing, and closing animations need defined durations and state boundaries so that a user acting before an animation finishes cannot corrupt the state.
3. Complex Game Prototype: Testing a Model’s Reasoning Ability
Compared with visual pages, a small game with interaction rules is a better test of overall capability. A representative direction is asking a model to build a browser-based civilization strategy game, then adding real-time execution, automated decision-making, and map control.
The difficulty is not drawing a few buttons. It is whether the model can correctly understand abstract rules and translate them into program state.
3.1 Converting Turn-Based Mechanics to Real Time
Traditional strategy games use turns as the basic unit, while real-time strategy games require both sides to act continuously and simultaneously. The conversion needs at least:
- A continuously updated game clock;
- Action cooldowns for different units;
- Resources that accumulate or deplete over time;
- Real-time resolution of movement and combat;
- Game speed adjustment;
- Pause and resume.
Renaming the “end turn” button to “start game” does not count as a real-time mechanic. A more reasonable approach is a timed update loop that separates game state from rendering. For example:
function update(deltaTime) {updateResources(deltaTime);updateUnits(deltaTime);updateResearch(deltaTime);resolveCombat(deltaTime);}function render() {drawMap();drawCities();drawUnits();drawEffects();}
Here, update advances the game rules and render displays the current state. This structure makes it easier to add pause, speed multipliers, and replay later.
3.2 Adding an Assisted Research System
If the requirement asks for a helper system that completes research automatically, the model must understand that this is not a checkbox but a complete decision loop:
- Check whether the user has enabled the assistant;
- Check whether current resources satisfy research conditions;
- Select a researchable item;
- Handle research time;
- Update tech state when research completes;
- Avoid duplicate research or selecting unavailable nodes.
A tech tree is essentially a directed dependency graph. A tech node may require prerequisite technologies, resources, population, or specific buildings. Even in a simplified game, the basic data structure should be preserved, for example:
const technologies = [{ id: "agriculture", cost: 50, requires: [] },{ id: "engineering", cost: 100, requires: ["agriculture"] }];
The assistant should first filter nodes whose dependencies are met, then choose among them by priority. Only then is the feature genuinely “automatic research” rather than simulated clicking on the interface.
3.3 Units Finding Targets Automatically
Making all units automatically seek enemy units or cities involves target detection, distance calculation, pathfinding, and state transitions. A simplified implementation can follow this flow:
- Search for targets within the currently visible range;
- Compute the distance from the unit to each target;
- Select the nearest or highest-priority target;
- Generate a movement path;
- Move along the path;
- Enter attack range and resolve combat;
- Re-acquire a target once the current one disappears.
On a small map, a simple grid search is enough. As the map grows, obstacles, terrain costs, and congestion among multiple units must be considered. Generating a runnable version in one pass shows that the model can turn a high-level natural-language goal into multi-step program logic, but developers should still specifically check for infinite loops, lost targets, and unreachable paths.
4. Quality of the Control Features
Whether a complex application is actually usable often comes down to detail control.
4.1 Speed Adjustment
A speed slider normally maps to a game-time multiplier. Rather than modifying the interval of every timer, which easily leads to unsynchronized timers, it is safer to keep a single time source and correct logical time with the multiplier:
const logicalDelta = realDelta * speedMultiplier;update(logicalDelta);
Resource growth, unit movement, and combat resolution then all run on the same time system.
4.2 Hexagonal Map
A hex grid has more neighboring directions than a square grid and suits terrain and movement relationships in strategy games, but coordinate conversion, neighbor lookup, and screen drawing are all more complex. Use axial or cube coordinates consistently, and avoid mixing logical and display coordinates.
4.3 Keyboard Camera Control
Keyboard camera control must distinguish “move the map camera” from “move a game unit.” Input focus also matters: while the user is typing text or adjusting a slider, arrow keys should not unexpectedly pan the map.
4.4 Icon-Based Display
Using icons for cities, resources, units, and tech nodes raises information density but creates readability problems. Icons should be paired with color, text labels, and hover descriptions rather than relying on the glyph alone. Fallbacks are also needed across different operating systems and font environments.
5. Why the Same Model Performs Differently Across Environments
In practice, the same model can behave inconsistently across different entry points or at different times. Common reasons include:
- High request volume, which slows responses;
- Different context-length or output limits;
- Different system prompts and code execution environments;
- Preview panes that restrict dependencies, resources, and script permissions;
- Different model versions or inference configurations;
- Different context between the first generation and later revisions.
A single run is therefore not enough to judge model capability. A better method is to fix the requirements and the acceptance criteria, and record what changed in each round. In particular, separate “the model cannot do it” from “the runtime environment did not execute it correctly.”
6. Prompt Iteration: From Describing a Vision to Defining Acceptance Criteria
For complex tasks, a prompt should not be one broad sentence. A layered structure works better.
Layer 1: Define the Goal
State the application type, the target users, and the core experience.
Layer 2: List the Features
Break requirements into clearly numbered, non-conflicting feature points.
Layer 3: Add Constraints
Specify the tech stack, file organization, interaction model, performance requirements, and compatibility range.
Layer 4: Define Acceptance Criteria
For example:
- Windows must support dragging;
- Focus must switch correctly when multiple windows are open;
- The game must advance continuously rather than depend on a turn button;
- When the speed multiplier changes, time logic for all entities must stay in sync;
- Units must not hang when no target is found;
- Mobile layouts must avoid content overflow.
Layer 5: Request Staged Output
Generate data structures and core logic first, then the interface, then visual polish and testing notes. Compared with generating all code at once, staged output makes problems easier to locate and helps the model respect task boundaries.
7. How to Evaluate LLM Output Objectively
New-generation LLMs already show strong capability in web prototypes, interactive demos, and lightweight games. They are particularly well suited to:
- Quickly validating a product idea;
- Building interactive prototypes;
- Generating front-end scaffolding;
- Assisting with state-management logic;
- Explaining and fixing simple runtime errors;
- Giving non-specialist developers a technical starting point.
They still cannot fully replace engineering development, because:
- Hidden errors appear easily under complex state;
- Code structure may lack long-term maintainability;
- There is subjective drift between visual output and the written requirement;
- Performance, compatibility, and security may not be adequately considered;
- Large projects need continuous integration, testing, and version control.
A more accurate framing: LLMs are becoming high-efficiency development collaborators. They are good at turning natural language into runnable prototypes quickly and at lowering the cost of trial and error, while requirement confirmation, architecture design, quality acceptance, and production governance remain the developer’s responsibility.
For individual developers, this can significantly shorten the path from idea to demo. For enterprise teams, it fits prototype validation, internal tools, test pages, and rapid construction of knowledge-oriented applications. The valuable way to use it is not to chase a perfect one-shot result, but to establish a collaboration loop: describe requirements, run and verify, report problems, patch locally, and keep validating.
