make actuator properly create html elements
[2048.git] / js / html_actuator.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
  });
};
 
comments