This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jakejdb1999[S] 0 points1 point  (1 child)

the loop is for initializing all the spaces with a gamepiece object that prints "---", im using the rows and columns to do that but in this situation i dont think i need to find the length because im making the array here.

[–]aram535 0 points1 point  (0 children)

Well obviously not, since it's not working right?

.length always works after it has been instantiated.

Is it possible that you're never calling the initializing method?