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

In the original p5js version validOptions is a function which returns an array w/ 4 instances of Step:

But in your converted Java Mode version it is just an array not a function:

Also your attempt of emulating method Array::pop():

Using Java’s List::remove() mixing w/ loops doesn’t seem to be working.

BtW, I’ve ended up making my own conversion attempt and posted it online:

1 Like