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

arrayswpeeper-gui

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrayswpeeper-gui

A GUI implementation of the arraysweeper module

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

arraysweeper

A module for creating an GUI based on the arraysweeper module. (https://www.npmjs.com/package/arraysweeper)[https://www.npmjs.com/package/arraysweeper] (https://github.com/arschmitz/arraysweeper)[https://github.com/arschmitz/arraysweeper]


arraysweeper.module:$.arraysweeper

$.arraysweeper(element, height, width, count)

A module for creating an GUI based on the arraysweeper module. (https://www.npmjs.com/package/arraysweeper)[https://www.npmjs.com/package/arraysweeper] (https://github.com/arschmitz/arraysweeper)[https://github.com/arschmitz/arraysweeper]

Parameters

element: jQuery | selector | node, The element to create the game on

height: number, Height of the board to create.

width: number, Width of the board to create.

count: number, The number of mines to place on the board.

arraysweeper.arraysweeper(height, width, count)

jQuery Plugin Method for creating an arraysweeper-gui game $.fn.arraysweeper

Parameters

height: number, Height of the board to create.

width: number, Width of the board to create.

count: number, The number of mines to place on the board.

arraysweeper.refresh(true)

refrsh the board this will reset the game and get new random mines

Parameters

true: boolean, getValues - If values should be obtained from the settings bar

arraysweeper.getValues()

return an object of the values from the settings bar

arraysweeper.init()

Initalize the toolbars

arraysweeper.setValues(height, width, count)

Set the initial values for the inputs

Parameters

height: number, Height of the board to create.

width: number, Width of the board to create.

count: number, The number of mines to place on the board.

arraysweeper.renderBoard()

Render the game board based on its current state


Keywords

FAQs

Package last updated on 13 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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