var randx, randy;
do {
randx = parseInt (Math.floor (Math.random () * 4));
randy = parseInt (Math.floor (Math.random () * 4));
} while (board[randx][randy]);
老师这样逻辑是不是更加好一些
var randx, randy;
do {
randx = parseInt (Math.floor (Math.random () * 4));
randy = parseInt (Math.floor (Math.random () * 4));
} while (board[randx][randy]);
老师这样逻辑是不是更加好一些
2014-09-05
举报