Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

tui-mines: Sweep mines from a minefield, in the terminal (Bash)

https://gitlab.com/christosangel/tui-mines

tui mines is evidently a text-based user interface implimentation of the classic mine sweeping puzzle game.

The user has to clear a board, square by square, flagging the squares suspected to hide mines on the way.

If the user opens a mine square, things go KABOOM! and the game is lost.

The user uses hints from the numbered squares. This numbers how many bombs are touching that square in every direction ( 8 in total).

Through logic, and a bit of luck, the player ends up clearing all the squares, while flagging all the mines.

View original on programming.dev
33

2 replies

You reached the end

tui-mines: Sweep mines from a minefield, in the terminal (Bash) | Spyke