干掉所有的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

@@ -38,13 +38,15 @@ local function restart()
end
local function checkBoard(b,p)
for i=1,8 do
local testNextLine
for j=1,3 do
if b[lines[i][j]]~=p then
goto CONTINUE_testNextLine
testNextLine=true
break-- goto CONTINUE_testNextLine
end
end
do return true end
::CONTINUE_testNextLine::
if not testNextLine then return true end
-- ::CONTINUE_testNextLine::
end
end
local function full(L)