r/LocalLLaMA · · 3 min read

GLM 5.2 is out - open weights to be released next week. How did it do on my one-shot Pac-Man test?

Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.

GLM 5.2 is out - open weights to be released next week. How did it do on my one-shot Pac-Man test?

Quick initial impressions:

- at 70 tok/s slower than GLM 5.1

- seems to spend more time reasoning

- better results with my Pac-Man test

The one-shot result is almost functional; apart from the ghosts getting stuck immediately after leaving the ghosts house, I did not notice any other obvious bug. Everything else seems to function much better than any of the other models I tried, and the game is more complete. This ranks it in first place. Second place is Qwen 3.6 27b. You can test the result here:

https://pacman46.com/glm52-oneshot

However, with just one follow up prompt to fix the ghosts bug, the game is fully functional!

https://pacman46.com/glm52

Here is my user prompt (revised since my initial tests):

[INTENT] Build a complete, playable Pac-Man clone as a self-contained HTML page that runs by double-clicking the file. [SCOPE] - Classic Pac-Man gameplay: navigate maze, eat dots, avoid ghosts - Core mechanics: maze with walls, dot collection, score, lives, 4 ghosts, power pellets with frightened-ghost mode - Standard arcade elements: 4 ghosts with distinct AI personalities, wrap-around tunnel, multiple levels [APPROACH] - Single pacman.html file with inline <style> and <script> - HTML5 Canvas for rendering (grid-based maze, ~28×31 tiles like the original) - Vanilla JavaScript, no frameworks - Keyboard controls: arrow keys + WASD [CONSTRAINTS] - Must work offline by opening the file directly in a browser - No external dependencies, CDNs, or asset files - No build step [DELIVERABLE] - One complete pacman.html file [DONE WHEN] - Game launches by double-clicking the file - Pac-Man moves with keyboard and respects maze walls - Dots are eatable; score increments - 4 ghosts move with distinct behaviors and chase Pac-Man - Power pellets turn ghosts vulnerable; eating a vulnerable ghost resets that ghost - Pac-Man loses a life on ghost contact when not powered - Game ends at 0 lives; restart works - Score and lives visible on screen 

And my system prompt:

You are the world's leading expert in vanilla web development, specifically in creating high-performance, single-file web applications using only HTML5, CSS3, and ES6+ JavaScript. You reject frameworks in favor of clean, efficient, and semantic code. Your goal is to receive a requirement and produce a single, self-contained HTML file that functions perfectly without external dependencies (no CDNs, no images, no libraries). Because you must complete this task in a "one-shot" continuous generation, you must think before you code. You will follow a strict "Chain of Thought" protocol to ensure correctness. Follow this specific execution format for every response: <analysis> 1. REQUIREMENTS BREAKDOWN: - List every functional and non-functional requirement. - Identify potential edge cases. 2. ARCHITECTURAL PLAN: - CSS Strategy: Define the variable system, layout approach (Flexbox/Grid), and responsive breakpoints. - JS Architecture: Define state management, event listeners, and core logic functions. - HTML Structure: specific semantic tags to be used. 3. PRE-MORTEM & STRATEGY: - Identify the most likely point of failure. - Define the solution for that specific failure point before writing code. </analysis> <implementation> (Provide the complete, valid HTML string here. Include CSS in <style> and JS in <script> tags. The code must be production-ready, accessible, and clean.) </implementation> <code_review> Self-Correction and Validation Report: 1. Does the code meet all requirements listed in the analysis? [Yes/No] 2. Are there any distinct accessibility (a11y) violations? 3. Verify that no external libraries were used. </code_review> 

BTW, when I tested Qwen 3.6 27B, I was so impressed with the results that I continued to refine the game. Initially still with the original model, but then I switched to GLM 5.1 due to the speed. Apart from the music, which I wrote and recorded, everything else was generated with those 2 models, still with me making most of the design, graphics, and architectural decisions: https://pacman46.com

submitted by /u/ex-arman68
[link] [comments]

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from r/LocalLLaMA