Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
118fb798bf | |||
bd65108a48 | |||
c26f8c948e |
|
@ -12,3 +12,9 @@ license = "GPL-3.0"
|
||||||
clap = { version = "4.2.1", features = ["derive"] }
|
clap = { version = "4.2.1", features = ["derive"] }
|
||||||
colored = "2.0.0"
|
colored = "2.0.0"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
opt-level = 'z' # Optimize for size
|
||||||
|
lto = true # Enable link-time optimization
|
||||||
|
codegen-units = 1 # Reduce number of codegen units to increase optimizations
|
||||||
|
strip = true # Strip symbols from binary*
|
||||||
|
|
|
@ -6,16 +6,19 @@ This is an implementation of the classic game minesweeper using the command line
|
||||||
```Bash
|
```Bash
|
||||||
cargo run
|
cargo run
|
||||||
```
|
```
|
||||||
or use one of the provided executables in the releases.
|
or use one of the provided executables in the [releases tab](https://git.alexanderbass.com/Alexander/cli-minesweeper/releases).
|
||||||
|
|
||||||
## How to play
|
## How to play
|
||||||
|
|
||||||
Run the program and select the size of the minefield, or press enter to go with the default.
|
Run the program and select the size of the minefield, or press enter to go with the default.
|
||||||
|
|
||||||
To reveal tiles, simply type a command in the format of `x,y` such as `3,5`
|
To reveal tiles, simply type a command in the format of `x,y` such as `3,5`.
|
||||||
To flag tiles, prefix that command with an `f`, like `f3,5`
|
To flag tiles, prefix that command with an `f`, like `f3,5`.
|
||||||
To quit, use `CTRL+C` or the `q` command.
|
To quit, use `CTRL+C` or the `q` command.
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
!["Screenshot of gameplay"](screenshot.png)
|
!["Screenshot of gameplay"](screenshot.png)
|
||||||
|
|
||||||
|
|
||||||
|
This repository's home is at [https://git.alexanderbass.com/Alexander/cli-minesweeper](https://git.alexanderbass.com/Alexander/cli-minesweeper) Contributions are still welcome if you're viewing this on GitHub.
|
||||||
|
|
Loading…
Reference in a new issue