clear free space and draw stack too

main
Louis Pearson 2024-02-16 00:10:52 -07:00
parent 16f65f5649
commit ab202c758e
1 changed files with 10 additions and 2 deletions

View File

@ -318,8 +318,16 @@ function update()
if is_clearing then if is_clearing then
hand=nil hand=nil
local clear_count=0 local clear_count=0
for a=7,13 do for i=3,6 do
for i=3,6 do if #stacks[1]~=0 and move_sel({1,#stacks[1]}, {i,#stacks[i]}) then
clear_count=clear_count+1
break
end
if #stacks[2]~=0 and move_sel({2,#stacks[2]}, {i,#stacks[i]}) then
clear_count=clear_count+1
break
end
for a=7,13 do
if #stacks[a]==0 then break end if #stacks[a]==0 then break end
if move_sel({a,#stacks[a]}, {i,#stacks[i]}) then if move_sel({a,#stacks[a]}, {i,#stacks[i]}) then
clear_count=clear_count+1 clear_count=clear_count+1