added a misc function

This commit is contained in:
Ishaan Bhardwaj 2020-11-17 21:52:20 -05:00
parent 88d2f0d8d1
commit 103f04ceaa

View File

@ -230,6 +230,15 @@ function Grid:checkForBravo(cleared_row_count)
return true return true
end 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() function Grid:checkSecretGrade()
local sgrade = 0 local sgrade = 0
for i=23,5,-1 do for i=23,5,-1 do