vue-minesweeper[web, game]

[ GitHub | Live ]

A minesweeper clone, inspired by Minesweeper.Online version of the game.

State of the page when we first open the page up

Game won Game lost

Those first two screenshots were on easy mode (9x9, with 10 bombs). Medium difficutly is 16x16 with 40 bombs, and hard is 16x30 with 99 bombs. These difficuties are all based on the minesweeper game mentioned above.

Board on medium difficutly Board on hard difficutly

And just like the minesweeper clone I mentioned earlier, I have also included a “custom difficutly” mode. Although I have slightly different way of calculating the maximum and minimum number of mines.

I don’t know what formula is used on Minesweeper.Online, so I decided to just go with X*Y/pi (and we round that number down). It makes our clone easier, but the number of mines isn’t too drastic. 11x11 board on Minesweeper.Online will limit you to 46 mines max, while our solution gives us 38.51549622823867125607 (that we just round up to 38)

Board on custom 10x30 difficutly

So yeah, that’s about it