Crates.io | rustsweeper |
lib.rs | rustsweeper |
version | 1.4.3 |
source | src |
created_at | 2024-06-09 09:51:05.428722 |
updated_at | 2024-06-15 08:41:30.471207 |
description | A command-line Minesweeper program written in Rust. |
homepage | |
repository | https://github.com/AidenPierce616/rustsweeper |
max_upload_size | |
id | 1266286 |
size | 55,285 |
This repository contains a command-line Minesweeper program written in Rust.
You can play the game by either downloading the executable, installing from crates.io, or building it yourself.
You can find the crates.io package here
To build Rustsweeper from crates.io, you need to have Rust installed on your system. If Rust is not installed, you can download and install it from here.
cargo install rustsweeper
Alternatively, you can find the latest releases (with executables) here.
To build it, please take a look at the section below.
To build Rustsweeper, you need to have Rust installed on your system. If Rust is not installed, you can download and install it from here.
Once Rust is installed, follow these steps:
Clone this repository to your local machine:
git clone https://github.com/AidenPierce616/rustsweeper.git
Navigate into the project directory:
cd rustsweeper
Build the project using Cargo:
cargo build --release
Run the game:
cargo run --release
Mouse Controls (if you have a desktop environment):
Click on a cell to reveal it.
Press F
to flag a cell as a potential mine.
Press Esc
at any time to return to the main menu.
Keyboard Controls (if you don't have a desktop environment or don't have a mouse):
W
, A
, S
, D
keys to move the selected cell.C
to reveal the selected cell.F
to flag the selected cell as a potential mine.Esc
at any time to return to the main menu.You can customize controls and adjust game difficulty using the in-game menu:
You can also change the appearance of the board using the same menu:
Contributions are welcome! If you find any bugs or have suggestions for improvement, feel free to open an issue or submit a pull request.