[Outdated!] Play my version of Minesweeper!
Docker Desktop or Node.js installed.
In the following, I will give instructions on how to run the game with either Docker or Node.
- Clone the repository, or download the zip and extract
- Run the command prompt at the directory, by opening the downloaded folder and typing
cmd
into the address bar:
- Inside the command prompt, type and confirm:
docker compose up
- Open your browser of choice, type
localhost
into the URL bar and start playing!
- Clone the repository, or download the zip and extract
- Run the command prompt at the directory, by opening the downloaded folder and typing
cmd
into the address bar:
- Inside the command prompt, type and confirm:
npm install
npm run dev
- Open your browser of choice, type
localhost:5173
into the URL bar and start playing!
- three difficulty modes (Easy, Medium, Hard)
- automatic revealing of neighbours, when there's no mine around
- revealing all neighbours with Left-Click + Right-Click
- timer, that's tracking your progress
- flag counter
- flagging tiles with Right-Click
This application was created with Svelte, which is a frontend framework for Javascript.
The application consists of multiple components, which are located in the src
folder and are joined together in the App.svelte
file.
The component structure that I chose for this project:
App.svelte
-
DifficultySelection.svelte
-
UserInterface.svelte
-
-
FlagsCount.svelte
-
-
-
Timer.svelte
-
-
-
ResetButton.svelte
-
-
-
Minesfield.svelte
-
-
-
-
Cells.svelte
-
-
stores.js