My first infinite loop

I was making a routine to color the blocks in a gradient, and when I was ready to move on I commented out that code. When I did that, I accidentally removed this line:

previous = previous.exploredFrom;

So it never increments through the list and explores the same block over and over … and over…

So that must be a programming milestone, right? Super proud of myself. :slight_smile:

I have a feeling Ben did something very similar later in this section. So you’re in good company :slight_smile:

Anyhow,

10 Print "Congratulations on your first endless loop!"
20 GoTo 10
1 Like

Privacy & Terms