最赞回答 / tkkkk
function onemoreSpace(board){ var spaceCell = new Array(); var k = 0; for (var i = 0; i < 4; i++) { for (var j = 0; j <4 ; j++) { if (0==board[i][j]) { spaceCell[k++] = i*4+j; } } } return 0!=spaceCell.length ? spaceCell : false;}function ra...
2016-06-12