mirror of
https://github.com/danog/2048.git
synced 2024-12-14 02:07:39 +01:00
14 lines
279 B
JavaScript
14 lines
279 B
JavaScript
function HTMLActuator() {
|
|
|
|
}
|
|
|
|
HTMLActuator.prototype.update = function (grid) {
|
|
// Temporary debug visualizer
|
|
grid.forEach(function (row) {
|
|
var mapped = row.map(function (tile) {
|
|
return tile ? tile.value : " ";
|
|
}).join(" | ");
|
|
console.log(mapped);
|
|
});
|
|
};
|