hobby-ish gamedev. This website contains my raw notes and documents my progress.

I currently have problems with choosing the x colum ranges when choosing a random cell.
I dont understand this, i have to look further into this tomorrow.

This was bullshit. Too much refactor. This is much cleaner now.

The reason it was that bullshit complicated was, that we called the place cells function twice, once in ready and once in the create path function. This fucks up the loop. A quick and easy fix is just to call the function only once within the function where it is needed, that way we can use the return values, as a function needs to be called before return values can be used, obviously.
Another way would be to call it in ready and just store the values in a class variable (a variable at the top outside of every function, therefore there wont be any scope issues)