extract the grid to its own class
This commit is contained in:
+2
-2
@@ -2,9 +2,9 @@ function HTMLActuator() {
|
||||
|
||||
}
|
||||
|
||||
HTMLActuator.prototype.update = function (grid) {
|
||||
HTMLActuator.prototype.actuate = function (grid) {
|
||||
// Temporary debug visualizer
|
||||
grid.forEach(function (row) {
|
||||
grid.cells.forEach(function (row) {
|
||||
var mapped = row.map(function (tile) {
|
||||
return tile ? tile.value : " ";
|
||||
}).join(" | ");
|
||||
|
||||
Reference in New Issue
Block a user