Compare commits

..

3 commits

Author SHA1 Message Date
Alexander Bass 118fb798bf Update README.md 2023-05-15 23:29:21 -04:00
Alexander Bass bd65108a48 Fix punctuation in readme 2023-04-03 17:07:24 -04:00
Alexander Bass c26f8c948e add releases 2023-04-03 17:04:50 -04:00
2 changed files with 13 additions and 4 deletions

View file

@ -12,3 +12,9 @@ license = "GPL-3.0"
clap = { version = "4.2.1", features = ["derive"] }
colored = "2.0.0"
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*

View file

@ -6,16 +6,19 @@ This is an implementation of the classic game minesweeper using the command line
```Bash
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
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 flag tiles, prefix that command with an `f`, like `f3,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 quit, use `CTRL+C` or the `q` command.
## 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.