Edvin Jakobsson

MSc student in Electronics Design Engineering, Linköping University.

nsweeper

2022-01-25

Source: nsweeper

A first pass at Minesweeper in ncurses. A grid of tiles, a quarter of them mined, move a cursor with WASD and dig with enter. It's the roughest of my terminal projects and it shows: the neighbor-counting logic recurses in a way that doesn't quite work out, and there are leftover debug prints and a stray `getch()` still sitting in the loop from tracking that down mid-session.

I never went back to fix it, but it's a decent snapshot of what debugging recursive logic by sprinkling `getch()` calls everywhere actually looks like in progress, rather than the cleaned-up version you'd normally show off.