1
0
mirror of https://github.com/danog/2048.git synced 2024-12-14 02:07:39 +01:00
2048/js/html_actuator.js
2014-03-08 12:50:45 +01:00

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);
});
};