Hi guys, I have tried to creatre a 2 dimensional array and it doesn’t seems to work somehow. Everytime I run this code, my program crashes. The code is as stated below:
var board = new Array();
for ( i = -6; i <= 12; i++ )
{
for ( j = -7; j <= 14; i++ )
{
if ( i >= 0 && i <= 6 && j >= 0 && j <= 7 )
board*[j] = false;
else
board*[j] = true;
}
}