Skip to content

33YANG/mine-sweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mine-Sweeper Project

This is A Web Game Program For Mine Sweeper Writed By JavaScript.

Build with webpack

Preview

https://33yang.github.io/mine-sweeper

This project includes a basic web-side minesweeper game with 3 levels of difficulty.

MINE-BOOM.PNG

There is an automatic minesweeping mode (each step can be delayed by 1s), and a debug mode in the automatic mode, which allows you to see clearly the operation of each step of the computer.

And a cyclic automatic minesweeping mode, where the computer constantly tries to sweep mines to obtain the ratio between the success and failure of mine sweeping.

MINE-LOOP.PNG

The minesweeper probability chart of this automatic minesweeper program is provided.

MINE-CHART.PNG

Start

yarn

Build for production

yarn build

When build completed, open dist/index.html in broswer, or try:

yarn global add http-server && http-server dist

you will get a local http server, open the server site to check the build result.

Start at devolepment

yarn start

You will get a live-reload devolepment env about js&less files

License

MIT