diff options
| author | Edvin Jakobsson <[email protected]> | 2026-09-08 19:34:30 +0200 |
|---|---|---|
| committer | Edvin Jakobsson <[email protected]> | 2026-09-08 19:34:30 +0200 |
| commit | 786df3ae4223d4fb0235cad5b28fdbf4fc50ae06 (patch) | |
| tree | 89dedc6c6c0612decb4d5b1bfb793536fc9532af /README.md | |
| parent | af20e4df32d6a16ede920d877b02193859c2adc7 (diff) | |
Add README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..e9c04c8 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# nsweeper + +A first pass at Minesweeper in ncurses — a grid of tiles, a quarter of them mined, move a cursor with WASD and press enter to dig. It's the roughest of the terminal projects here and it shows: the neighbor-counting function (`cac`) recurses in a way that doesn't quite work out, and there are leftover debug prints and a stray `getch()` still sitting in that loop from tracking it down mid-session. It was never revisited after the first commit. + +Comes with a prebuilt `nsweeper` binary checked into the repo alongside the source, from whenever it was last built. + +## Controls + +- `W`/`A`/`S`/`D` — move the cursor +- `Enter` — dig the current tile + +## Building + +Needs ncurses. + +```sh +cc nsweeper.c -lncurses -o nsweeper +./nsweeper +``` |
