A web application that lets users play the classic game of Minesweeper on a grid made of the aperiodic monotile (Hat Tile).
The webpage can be viewed easily by simply navigating to the page
https://aperiodic-minesweepr.vercel.app
The webpage can also be viewed locally by following the steps below.
- Install Node.js and npm
- Go to https://nodejs.org/
- Download the LTS version
- Run the installer and follow the wizard
- Verify installation by opening command prompt and typing:
node -v
npm -v
- Go to https://nodejs.org/
- Download the LTS version for macOS
- Run the downloaded .pkg file and follow instructions
- Verify installation in terminal with
node -v
andnpm -v
sudo apt update
sudo apt install nodejs npm
- Install http-server:
npm install -g http-server
- Run the server in project directory:
http-server
- Open in browser:
http://localhost:8080/src/index.html
The game follows the original rules of minesweeper and can be played by pressing the START GAME button in the top left of the page.
If the game has ended, press RESET to clear the grid, then START GAME to begin another game.
The frequency of mines can also be toggled using the TOGGLE DIFFICULTY button.
If the performance is subpar, the game can be put in low performance mode by pressing the 3D MODE button on the right.
The colour of the grid can be changed to whatever colour you like by toggling the SELECT UNEXPLORED COLOUR and the SELECT EXPLORED COLOUR buttons.
Preset colour schemes are also available on the right.
If you want to clear the local scores, press the CLEAR LEADERBOARD button.
Thank you to Craig S Kaplan for providing a starting point for this project, including the hat shape and grid formulation functions, the repository can be viewed here: