干掉所有的goto来测试love.js

This commit is contained in:
MrZ_26
2023-06-12 11:42:17 +08:00
parent 91adc0d153
commit 514f0a17b5
13 changed files with 265 additions and 212 deletions

View File

@@ -65,14 +65,19 @@ local function _getScore(field,cb,cy)
local hole=0
for i=cy+#cb-1,cy,-1 do
local full=true
for j=1,10 do
if field[i][j]==0 then
goto CONTINUE_notFull
-- goto CONTINUE_notFull
full=false
break
end
end
discardRow(rem(field,i))
clear=clear+1
::CONTINUE_notFull::
if full then
-- ::CONTINUE_notFull::
discardRow(rem(field,i))
clear=clear+1
end
end
if #field==0 then-- PC
return 1e99