Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board containing hidden "mines" or bombs without detonating any of them, with help from clues about the number of neighbouring mines in each field.
The game originates from the 1960s, and it has been written for many computing platforms in use today.
More information about the game
Minesweeper was written on Rust and Typescript
Rust contains the main logic of the game:
- Contains the main
map
(orbattlefield
inside the code) with providedcols
,rows
and providedbombs
- Contains the logic to reveal specific cell
- Contains only render part of the game. It uses
PixiJS
to render Canvas with WebGL and visualize board game based on Rust engine
# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.
npm start
# Builds the project and places it into the `dist` folder.
npm run build
# Runs tests in Firefox
npm test -- --firefox
# Runs tests in Chrome
npm test -- --chrome
# Runs tests in Safari
npm test -- --safari