top | item 35785448 (no title) Kaotique | 2 years ago 2048 spawns new numbers randomly on the board. A human player uses that information to determine the best move. discuss order hn newest jxf|2 years ago Yes, but that's _state_, not _history_. morelisp|2 years 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)]; } }; Kaotique|2 years ago Besides that you need to predict where the next number can and should spawn. If you don't figure out the strategy for that you will never get a decent score. IanCal|2 years ago That relies on the board state but not the board history.
morelisp|2 years 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)]; } };
Kaotique|2 years ago Besides that you need to predict where the next number can and should spawn. If you don't figure out the strategy for that you will never get a decent score. IanCal|2 years ago That relies on the board state but not the board history.
jxf|2 years ago
morelisp|2 years ago
Kaotique|2 years ago
IanCal|2 years ago