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.9 to 0.1.0

8

index.js

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

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