I can see there’s a lot of find your hat threads, bt AFAICT nobody is asking what I am asking, so…
I need some help. I can manage to get the generateField to work as a function outside the class, but when I move it inside the class I get all kinds of type errors. If I try to put just the first part of it (creating a field of just ‘░’ then I get undefined. My problem is I don’t know if my code is wrong or if I am just making a mistake in how I try to test my part finished class. I don’t want to just continue and hope that it will all work in the end, that seems doomed to fail.
Here’s a copden of the function on it’s own and working
Here’s a codepen of it in the class and not working (or me not knowing how to test it properly)
Note that in first codepen I had to use field.length and field.length in place of rows and cols as they’re arguments in the static function, perhaps this is the problem, IDK. I would really appreciate some help as I have been at this for a few days on and off and I’m making slow progress.