Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arraysweeper

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arraysweeper - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

7

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc