arraysweeper
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -61,3 +61,3 @@ // This just supports loading in any enviroment | ||
this._board[ row ][ col ].state = state ? "flag" : "hidden"; | ||
console.log( this.count.hidden ); | ||
if ( this.count.flags + this.count.hidden === this.count.mines ) { | ||
@@ -82,5 +82,6 @@ return "You Win!"; | ||
this._buildBoard(); | ||
} else if ( this.count.flags + this.count.hidden === this.count.mines ) { | ||
} else if ( this.count.flags + this.count.hidden === this.count.mines + 1 ) { | ||
returnValue = "You Win!"; | ||
} | ||
this.count.moves++; | ||
@@ -153,3 +154,3 @@ revealValue = this._reveal( row, col ); | ||
pending.indexOf( r + "," + c ) === -1 && | ||
( r !== row || c !== col ) ) { | ||
( r !== row || c!== col ) ) { | ||
this._board[ r ][ c ].state = ""; | ||
@@ -156,0 +157,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.7", | ||
"version": "0.0.8", | ||
"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
14618
265