1.0.3 • Published 2 years ago

mui-minesweeper v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Classic Mine Sweeper Game

created using Typescript and MUI-core (formerly called Material-UI)

Getting Started

Install this package:

npm install mui-minesweeper

Import the Counter component:

import { Minesweeper } from "mui-minesweeper";

You can then render the Minesweeper component like any other React component in JSX.

Rendering this module in your application will also enable you to have a capability to select the difficulty level as below skill-selection

SkillxFieldsCountyFieldCountbombCount
Number of boxes in x-axisNumber of boxes in y-axisNumber of bombs on board
Beginner8810
Intermediate161640
Expert301699

beginner-board

Bombs selection on board is completely random and every new page load or render of the component will have bombs in different places

Won

When the user wins the game win

Loss

When the user wins the game win

Since this game uses right click to select mines, it is difficult to play on laptop or mobile devices and so in those devices, following warning is shown

warning