On 6. Final Result the code has an error when it compiles.
tagged_lights_puzzle.verse(115,68, 115,77) : Script error 3506: Unknown identifier `IsLightOn`.
tagged_lights_puzzle.verse(117,21, 117,30) : Script error 3506: Unknown identifier `IsLightOn`.
tagged_lights_puzzle.verse(118,21, 118,26) : Script error 3506: Unknown identifier `Light`.
tagged_lights_puzzle.verse(121,21, 121,26) : Script error 3506: Unknown identifier `Light`.
Part of Code that doesn’t compile:
for:
LightIndex : LightIndices
IsLightOn := LightsState[LightIndex], Light := Lights[LightIndex]
Fix is to move Light to it’s own line
for:
LightIndex : LightIndices
IsLightOn := LightsState[LightIndex]
Light := Lights[LightIndex]
Also Index in if (set LightsState[Index] = NewLightState): should be LightIndex.
Is there an easier way to submit issues with the docs?