We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d01ef commit 09f5a06Copy full SHA for 09f5a06
095.每日数独.html
@@ -273,6 +273,7 @@
273
tip = { x: [], y: [] }
274
gridList = map.flat(1)
275
276
+ let isNull = false;
277
for (let y = 0; y < 5; y++) {
278
let yStr = ''
279
let xStr = ''
@@ -281,11 +282,15 @@
281
282
xStr += map[y][x].type
283
}
284
285
+ if (xStr === '00000' || yStr === '00000') {
286
+ isNull = true;
287
+ break;
288
+ }
289
tip.y.push(yStr.split('0').filter(a => a).map(a => a.length))
290
tip.x.push(xStr.split('0').filter(a => a).map(a => a.length))
291
292
- if (tip.y.length < 5 || tip.x.length < 5) { // 地图有问题重新生成
293
+ if (tip.y.length < 5 || tip.x.length < 5 || isNull) { // 地图有问题重新生成
294
initMap();
295
return;
296
0 commit comments