8d6d272f7670456c00f84339a3b4f80fa1dc4125
审查发现 _solveGrid 在 count > cols*rows 时静默截断多出的项,违反显式失败 红线;补校验直接抛错并报出 count 与容量。fillOrder 字段之前从未被读取、 形同虚设,改为显式拒绝除 'row' 外的值(不实现列优先,YAGNI)。 测试补 grid 超载/恰好满格/fillOrder 三态,以及 attach 四角(topLeft/ bottomLeft/bottomRight)的精确坐标核对(此前只有 topRight 有精确值)。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Description
No description provided
11 MiB
Languages
JavaScript
99%
HTML
0.8%
PHP
0.1%