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.8 to 0.0.9

9

index.js

@@ -78,2 +78,3 @@ // This just supports loading in any enviroment

if ( space.bomb && this.count.moves !== 0 ) {
this._revealAll();
return "Game Over!";

@@ -110,2 +111,10 @@ } else if ( space.bomb ) {

_revealAll: function() {
for( var r = 0; r < this.height; r++ ) {
for( var c = 0; c < this.width; c++ ) {
this._board[ r ][ c ].state = "revealed";
}
}
}
_renderMap: function( space ) {

@@ -112,0 +121,0 @@ return space.state === "revealed" ?

2

package.json
{
"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.8",
"version": "0.0.9",
"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