You already dug into this for me, remember? And you found a mistake without even trying very hard. That tells me right there I don't have to go digging very far to find more thot copypasta from stack overflow bullshit.
It's not something that will trigger a compilation error or an error in the execution of the algorithms as it is, so technically it's not really an error
But well, who am I talking to? You can't read the code for yourself to begin with
But well, who am I talking with?
auto_turret. C'mon, man.
See the 2 dimensional array here, starting at line 7 and ending at line 77 https://github.com/kubowania/connect-four/blob/master/app.js
If you look at line 76, you'll see that it ends with a comma, it shouldn't. Commas are used to separate elements in an array, so you have an empty slot after that comma as a result, which in turn affects the array's length; it's one occurence longer than it should be, it can eventually produce an error, but not necessarily, depends on what you do with it.
A 2D array is just an array containing another array, this is a simple array, line 7 https://github.com/kubowania/rock-paper-scissors-x3/blob/main/rock-paper-scissors-examples/rock-paper-scissors-example-2/app.js
As you can see, it doesn't end with a comma, and that's how it should be
(post is archived)