Icon representing a recipe

Recipe: 2406_DNA_Idealize

created by LociOiling

Profile


Name
2406_DNA_Idealize
ID
108536
Shared with
Public
Parent
None
Children
Created on
January 20, 2024 at 03:52 AM UTC
Updated on
January 20, 2024 at 03:53 AM UTC
Description

Demonstrates a crash when idealizing two DNA segments on puzzle 2406.

Best for


Code


--[[ for puzzle 2406, demonstrate a crash the crash happens when you idealize two DNA segments that are not at the end of the DNA chain the recipe is set with hardcoded values: 70 - DNA (end of chain) 71 - DNA (beginning of chain) 72 - DNA (mid-chain) 73 - DNA (mid-chain) the recipe idealizes 70-71 and 71-72, but then crashes attempting to idealize 72-73 ]]-- tlen = structure.GetCount () -- for ii = 1, tlen - 1 do -- uncomment to scan entire puzzle for ii = 70, 83 do -- hardcoded values first = ii last = ii + 1 selection.DeselectAll () selection.SelectRange ( first, last ) print ( "idealize " .. first .. "-" .. last ) print ( "" ) structure.IdealizeSelected () print ( "idealized" ) print ( "" ) end

Comments