mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-12-22 16:49:03 -06:00
added a misc function
This commit is contained in:
parent
88d2f0d8d1
commit
103f04ceaa
@ -230,6 +230,15 @@ function Grid:checkForBravo(cleared_row_count)
|
||||
return true
|
||||
end
|
||||
|
||||
function Grid:checkStackHeight()
|
||||
for i = 0, 23 do
|
||||
for j = 0, 9 do
|
||||
if self:isOccupied(j, i) then return 24 - i end
|
||||
end
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
function Grid:checkSecretGrade()
|
||||
local sgrade = 0
|
||||
for i=23,5,-1 do
|
||||
|
Loading…
Reference in New Issue
Block a user