整理代码,调整local函数名规范(较边缘的代码不必遵守,比如外部的库和小程序):

特别临时性的用全大写字母缩写或者单字母
TASK模块用到的任务函数和检查函数开头分别为task_和check_
其他函数开头添加下划线作为指示
This commit is contained in:
MrZ626
2021-08-25 02:40:01 +08:00
parent ee55055385
commit 8f910f95f4
40 changed files with 470 additions and 466 deletions

View File

@@ -220,7 +220,7 @@ do--BLOCKS
--Dot
{{O}}, --O1
}
local function RotCW(B)
local function _RotCW(B)
local N={}
local r,c=#B,#B[1]--row,col
for x=1,c do
@@ -235,7 +235,7 @@ do--BLOCKS
local B=BLOCKS[i]
BLOCKS[i]={[0]=B}
for j=1,3 do
B=RotCW(B)
B=_RotCW(B)
BLOCKS[i][j]=B
end
end