wcoots / vue-minesweeper

💣 Personal project to build minesweeper in Vue
https://minesweeper-app.netlify.app/
GNU General Public License v3.0
3 stars 0 forks source link

Create levels from seeds #20

Closed wcoots closed 4 years ago

wcoots commented 4 years ago

Though this wasn't in the original minesweeper, I would like it to be a thing. Currently the distribution of mines is controlled by a random seed. This should still be the case, but there should also be the option to create a grid from a specified seed. It would also be very cool if this included the grid size, but with a capped grid size (e.g. 20 x 20) so that a weird seed can't make a massive grid (it would be even cooler if it did this using a modulus so that there is an even distribution of grid sizes amongst seeds)

kritzware commented 4 years ago

The seed could be specified via a query paramter e.g.

https://cooter.tech/minesweeper?seed=v8u183r
wcoots commented 4 years ago

completed in #32