this is mostly a test while i work on 1s1s Minesweeper! all it does right now is it generates "solved" minesweeper boards until it finds a (super rare) board with an 8! after a board has been found and drawn, it clears in 10 seconds! (it does get saved temporarily though!) press space to stop the program!
Feel free to open the editor and change some of the values! I've left comments trying to explain some code as well as point users to what they can change! anything marked with "CHANGABLE" is changable :D MORE EXPLANATIONS BELOW ------------------------------------------------------------------- board notation: so the list "board" looks kinda weird, but its literally just the minesweeper board! all the "-" symbols are empty spaces, the "+" symbols are mines, and the numbers are just numbers! mine density: the mine density is the percentage of the board that has mines. you can see that actual mine count of each board in the bottom right! the mine count is determined by the density, which stays between 15%-20% of the board. changing the grid size will change the amount of mines on board to keep the game fair (this is eventually going to be actual minesweeper i swear) highest number: this is just the highest number found across every board generated since last finding an 8! the numbers are determined by how many mines are within a one block radius of a square! 1 mine is 1, 2 is 2, and so on. its very rare to get a square with all 8 surrounding squares to have mines, which is why this test project searches for them! the highest number count doesn't include the 8's since they're being counted separately!