This is A Web Game Program For Mine Sweeper Writed By JavaScript.
Build with webpack
https://33yang.github.io/mine-sweeper
This project includes a basic web-side minesweeper game with 3 levels of difficulty.
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.
The minesweeper probability chart of this automatic minesweeper program is provided.
yarn
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.
yarn start
You will get a live-reload devolepment env about js&less files