freeze.IsFrozen() does not detect frozen sidechains

Started by zeroblue

zeroblue Lv 1

I tested this code on puzzles 1101 and 1103. It detects frozen backbones, but not frozen sidechains.

for i=1,structure.GetCount() do
if freeze.IsFrozen(i) then
print("Seg "..i.." is frozen.")
end
end

With these new mutable puzzles, it would be very nice to be able to detect frozen sidechains.

zeroblue Lv 1

The function freeze.IsFrozen() returns two booleans, so the correct usage is:

bool1, bool2 = freeze.IsFrozen(i)

Thanks to Sasume for explaining this!