Minesweeper made in vanilla JS
You can view it here https://jcurtis06.github.io/minesweeper/.
The goal is to reveal all safe squares, or flag all the bombs. At the start of the game, all squares are hidden. Tap/left click while in mining mode to mine and reveal some of the tiles. Some tiles will have numbers. This tells you how many bombs are adjacent/next to the square with the number. If you think there is a bomb on a square, switch into mine mode and left click the square, or right click if you are on a computer. Reveal all the bombs to win.
![image](https://private-user-images.githubusercontent.com/77545656/253570259-499d3fe4-5a1b-43ca-8efe-63b6059d84a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MzA1NzEsIm5iZiI6MTcyNDQzMDI3MSwicGF0aCI6Ii83NzU0NTY1Ni8yNTM1NzAyNTktNDk5ZDNmZTQtNWExYi00M2NhLThlZmUtNjNiNjA1OWQ4NGEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE2MjQzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhMWMyYTExODc1OGJlNTdkNjJjOTFlOTU3OTg0YWUyYTU3ZDhlNDY1MzE3ODlhMjg4MmE4ZTJhMzg1MmRjYjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4XDDNvq6KRM3rFZz81tjTx9JZU2ElSAptz2PPIxr45U)
![image](https://private-user-images.githubusercontent.com/77545656/253572602-64be6937-3bff-47e9-9e8d-0498067fb7a7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ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