basic grid implementation with initial setup
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user