Converting coding challenge 'Self-avoiding walk backtracing' from p5.js to Processing (Java)

you can test it yourself.

My guess

if (removed) { 
   removals += 1;
}
else { 
  removals +=  -removals;   // which is 0 I guess
 }
2 Likes