added a misc function

pull/13/head
Ishaan Bhardwaj 2020-11-17 21:52:20 -05:00
parent 88d2f0d8d1
commit 103f04ceaa
1 changed files with 9 additions and 0 deletions

View File

@ -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