3 ms·
Board history does not matter. Grid.prototype.randomAvailableCell = function () { var cells = this.availableCells(); if (cells.length) {
by morelisp 3y ago
Board history does not matter.
Grid.prototype.randomAvailableCell = function () {
var cells = this.availableCells();
if (cells.length) {
return cells[Math.floor(Math.random() * cells.length)];
}
};