arraysweeper
Advanced tools
Comparing version 0.0.9 to 0.1.0
@@ -111,8 +111,8 @@ // This just supports loading in any enviroment | ||
_revealAll: function() { | ||
for( var r = 0; r < this.height; r++ ) { | ||
for( var c = 0; c < this.width; c++ ) { | ||
for ( var r = 0; r < this.height; r++ ) { | ||
for ( var c = 0; c < this.width; c++ ) { | ||
this._board[ r ][ c ].state = "revealed"; | ||
} | ||
} | ||
} | ||
}, | ||
@@ -162,3 +162,3 @@ _renderMap: function( space ) { | ||
pending.indexOf( r + "," + c ) === -1 && | ||
( r !== row || c!== col ) ) { | ||
( r !== row || c !== col ) ) { | ||
this._board[ r ][ c ].state = ""; | ||
@@ -165,0 +165,0 @@ pending.push( r + "," + c ); |
{ | ||
"name": "arraysweeper", | ||
"description": "A array based implementation of a minesweeper board. Can be used via a browserconsole or the command line via node JS. The main intended purpose of this is to provide the board, and logic to implement a traditional minesweeper game using the api.", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Alex Schmitz", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14815