Skip to content

madhurw7/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps

Step 1 Create the grid

Step 2 Set up Mines use x = Math.random, if x < 0.3, put mine = true

On Clicking the box, 2 Cases:

Case 1: It contains a trap Show all the traps and game over

Case 2: It does not contain a trap Show the number of traps surrounding this box If the number of traps surrounding this box is zero Open the surrounding boxes (Same as Clicking on all of them) Call this Case 2 code again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published