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