0.0.1 • Published 4 years ago

@cassler/use-minesweeper v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
4 years ago

Minesweeper React

Using in a project

yarn install @cassler/use-minesweeper

Import the full component to use directly.

import { MineSweeper } from '@cassler/use-minesweeper';
import '/node_modules/@cassler/use-minesweeper/dist/style.css';

Or just the hook to compose your own version:

import { useMineSweeper } from '@cassler/use-minesweeper'
ArgumentTypeDefaultRequiredDescription
sizenumber12falseDimensions of gameboard along each axis in absolute units.
difficultynumber0.25falseLiklihood of a bomb being on any given square. Value between 0 and 1

Development

yarn & yarn dev To install dependencies and launch a dev server on Vite.

yarn build Will transpile ES and UMD flavors of modules - both are available for consumption. Notably, UMD modules which are capable of working everywhere, be it in the client, on the server or elsewhere. This includes compatability with require and import syntaxes with special-casing to handle CommonJS compatability.

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago