basic grid implementation with initial setup
[2048.git] / js / html_actuator.js
blob:a/js/html_actuator.js -> blob:b/js/html_actuator.js
--- a/js/html_actuator.js
+++ b/js/html_actuator.js
@@ -1,1 +1,14 @@
+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);
+  });
+};
+

comments