Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hactarce/minesweeper
Minesweeper, written in Rust
https://github.com/hactarce/minesweeper
Last synced: about 16 hours ago
JSON representation
Minesweeper, written in Rust
- Host: GitHub
- URL: https://github.com/hactarce/minesweeper
- Owner: HactarCE
- License: mit
- Created: 2019-09-21T02:25:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-12T16:02:07.000Z (over 2 years ago)
- Last Synced: 2023-03-06T04:52:38.511Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 162 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minesweeper in Rust
This is a Minesweeper game I made in Rust as a learning exercise.
Uses [original MS Windows Minesweeper graphics ripped by Black Squirrel](https://www.spriters-resource.com/pc_computer/minesweeper/).
## Build instructions
1. [Install Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
2. Clone this repository: `git clone https://github.com/HactarCE/Minesweeper.git && cd Minesweeper`
3. Run `cargo run`## Usage instructions
```
Usage: ./minesweeper [options]Options:
-h, --help print this help text
-s, --scale SCALE_FACTOR
scale the entire window by a constant factor
-1, --beginner play at BEGINNER difficulty (9x9 with 10 mines)
-2, --intermediate play at INTERMEDIATE difficulty (16x16 with 40 mines)
-3, --expert play at EXPERT difficulty (16x30 with 99 mines)
-x, --width WIDTH play with a custom board width
-y, --height HEIGHT play with a custom board height
-m, --mines MINE_COUNT
play with a custom number of mines
-d, --density MINE_DENSITY
play with a custom mine densityBoard size and mine count/density must be specified. Any of the
three preset difficulties specifies both; these can be overridden
manually or specified outright using the other arguments.The three difficulties (-1, -2, and -3) are mutually exclusive.
Mine count and mine density are mutually exclusive.
If width is specified but not height (or vice versa), the board
is assumed to be square.
```