← 全部题目
第 05 题游戏新题

抓娃娃机。

一台真的能玩的娃娃机:爪子只抓正下方的东西,会滑落,十个币很快就没了。

按住 ◀ ▶ 对准,然后下爪。一共十个币。方向键和空格也能用。

作品是模型的原始输出,在隔离沙盒里运行:不能联网,也读不到这个网站的任何数据。

Qwen 3.8 · 27B

本地
工具
DeepSeek Harness · Splash · 2026-11
过程
一遍写完,自己写无头浏览器测试后修了 1 轮 · 1 小时 52 分钟 · 思考 low · 推了 1 次:1 小时 50 分钟时它在反复排查自己的测试脚本,推了一句「游戏没问题了,别再查测试脚本了,收尾吧,写好 run.json」
文件
单个 HTML,37.1 KB
说明
在这台 48 GB 的 Mac 上用 DeepSeek Harness 跑,Qwen3.8-27B 用 Splash 引擎(4-bit,DFlash 2 推测解码)。文件是模型写出来的原样。

26/26项检查通过 · 第 1 名(并列)

题目要求里能用脚本验证的部分,全部通过。

排名

功能上谁做得全,大家又喜欢谁。

正在读取票数…

  1. =1 本地 26/26 —
  2. =1 云端 26/26 —

不用登录 · 每个浏览器一票,可以改。先玩,再投。

名次按通过的检查项数;并列按票数;★ 是观众最爱。

全部 26 项检查,逐份对照每份跑 3 遍 · 2026-11-10

每一项都来自题目里的一句要求,由脚本在无头浏览器里实际操作页面得出,不是读源码猜的。它测的是「要求的功能能不能用」,测不了好不好看、好不好玩。 下载这道题的检查脚本

检查项Qwen 3.8 · 27BClaude Fable 5.2
题目要求的 6 个元素都在通过通过
clawGame.getState() 的结构符合要求通过通过
开局 10 个币、0 个战利品,计数只显示数字通过通过
至少 12 个奖品、4 种以上通过通过
两局新游戏的奖品摆放不同通过通过
按住方向键爪子持续移动,松开即停通过通过
反方向键能移回来通过通过
爪子能到两端,但出不了机柜通过通过
键盘左右方向键能移动爪子通过通过
下爪是一段分阶段的动画,不是瞬移通过通过
每次下爪正好扣 1 个币通过通过
在出口上方下爪一定抓空通过通过
空格键能下爪通过通过
下爪过程中操作被锁定通过通过
币用完即结束:下爪禁用,出现「新游戏」通过通过
新游戏会重置币、战利品和奖品堆通过通过
对准奖品下爪能抓起来通过通过
被抓起的奖品确实在爪子正下方通过通过
奖品掉进出口算赢,并离开奖品堆通过通过
战利品计数与游戏状态一致通过通过
爪子会松:抓住的奖品会掉回堆里通过通过
桌面和手机尺寸都没有横向滚动通过通过
手机尺寸下三个按钮不小于 44×44px通过通过
触屏按住按钮能移动爪子通过通过
没有任何联网请求通过通过
控制台没有报错通过通过
通过26/2626/26
看这个排名之前要知道的

新题目。题目里写明了检查脚本需要的标记,每个模型都按同一套方法检查。两份作品拿到的题目和附加说明完全一样(写一遍、自己测、最多修 3 轮);Claude Fable 5.2 在 Claude Code 里做,Qwen 3.8 在本机的 DeepSeek Harness 里做。「对准比抓边缘更稳」需要几百次下爪才能验证,检查脚本测不了这一条。

每个模型在这道题上只有一份作品,名次说的是这份作品,不是模型的总体水平。

THE BRIEF

每个模型拿到的题目。

PROMPT.TXT

完整题目。每个模型拿到的都是这段原文。

初始任务 · 原文
下载 .txt ↓
Create a single-file, playable browser claw machine (an arcade crane game).

Output ONE file named index.html — all CSS inline in <style>, all JS inline in <script>. No external dependencies, no build step, no images, fonts or audio from the internet. Draw everything with Canvas 2D, CSS or inline SVG.

## The machine (all of this must actually work, not just be drawn)
1. A cabinet seen from the front: a glass box, a pile of at least 12 prizes on the floor, a prize chute on one side, and a claw hanging on a cable from a rail at the top.
2. Prizes are little characters or objects drawn in code — at least 4 different kinds, in different sizes. Their starting positions are randomized with `Math.random()` on every new game, so no two games start with the same pile. No prize starts above the chute.
3. Controls: the claw moves left or right for as long as a control is held — on-screen left and right buttons that work with mouse AND touch, plus the ArrowLeft and ArrowRight keys. A DROP control: an on-screen button, plus the Space key. The claw cannot leave the cabinet.
4. A drop is a real sequence animated with `requestAnimationFrame`: the claw descends, closes, lifts, carries to the chute, opens, and returns. The controls are locked until it is over. No instant jumps.
5. Grabbing is decided by geometry, not by a dice roll alone: the claw can only pick up a prize that is actually under it when it closes. A drop over empty floor, or over the chute, must always come back empty.
6. The grip is imperfect, like the real thing. A held prize hangs and swings as the claw moves, and it can slip and fall back into the pile. How well the claw was centred over the prize must change the chance of keeping it: a centred grab holds more often than a grab at the prize's edge. A prize that falls lands back in the pile and can be grabbed again.
7. A prize released over the chute is won: it leaves the pile, appears on a "collected" shelf, and the win counter goes up.
8. Credits: a game starts with 10 credits and each drop costs 1. At 0 credits the drop control is disabled and a game-over panel shows how many prizes were won, with a "New game" button that resets the credits, the counter and the shelf, and re-randomizes the pile.

## Feel (attempt these; a working machine comes first)
- The pile behaves like a pile: prizes rest on the floor or on each other, and when one lands or is pulled out, its neighbours settle or get nudged instead of floating in place.
- The cable gets longer and shorter; the prongs visibly open and close; a held prize hangs from the claw rather than being glued to a point.
- Small touches that make it feel like an arcade: a flourish on a win, a wobble on a near miss, a marquee or lights. Sound is not required.

## Hooks for automated checking — required, with these exact names
The page must expose its real state so a script can check it without guessing at your layout.
- Elements: `id="btn-left"`, `id="btn-right"`, `id="btn-drop"`, `id="btn-new"` (the New game button; it may stay hidden until the game is over, but it must exist), `id="credits"` and `id="wins"` (their text content is the number and nothing else).
- `window.clawGame.getState()` returns a plain object at any time:
  `{ phase, clawX, chuteX, credits, wins, prizes, held }`
  - `phase`: one of `"idle"`, `"dropping"`, `"closing"`, `"lifting"`, `"carrying"`, `"releasing"`, `"returning"`, `"gameover"`.
  - `clawX`: the claw's horizontal position, from 0 (its left limit) to 1 (its right limit).
  - `chuteX`: the `clawX` value at which the claw releases over the chute.
  - `prizes`: an array of `{ id, kind, x, y, inPile }`. `x` is on the same 0–1 scale as `clawX`, so a claw at `clawX === x` is centred over that prize. `y` runs from 0 (top of the cabinet) to 1 (the floor). `inPile` becomes false once the prize is won.
  - `held`: the `id` of the prize the claw is holding, or `null`.
- This must be the state the game really runs on. A separate object that does not match what is on screen is a fail.

## Layout and access
- Works at 1440×900 and at 390×844 with no horizontal page scrolling. At the phone size the on-screen buttons are at least 44×44px.
- Every control can be reached and used from the keyboard, with a visible focus ring.
- Respect `prefers-reduced-motion`: decorative lights and flourishes stop; the game still plays.

## Style
Yours to choose — but give it a point of view. A claw machine is a charming object; make one that people want to play twice. Keep the counters clean and readable.

Write only index.html. No commentary, just create the file.