basic grid implementation with initial setup

This commit is contained in:
Gabriele Cirulli
2014-03-08 12:50:45 +01:00
parent 0970a722ba
commit cf31e146aa
6 changed files with 131 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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);
});
};