this post was submitted on 14 Mar 2025
59 points (96.8% liked)

Linux

52723 readers
444 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/26801933

https://gitlab.com/christosangel/troblo

troblo is a terminal match-three game, written in Bash.

The aim is to place each time a pair of new tiles with fixed orientation on available empty squares of the 6x6 grid, in order to create rows or columns of three or more matching tiles, which will become empty again.

The new pair of fixed orientation tiles is shown each time at the right side of the grid.

The new pair can be placed only if both selected squares are empty.

The game ends when the grid becomes so clogged with unmatching tiles, and there is no place in the grid to drop the new fixed orientation (horizontal or vertical) pair of tiles.

This game was inspired by https://368chickens.com/.

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 2 weeks ago (1 children)

I love projects like this. It’s way harder to do in Bash, but that’s what makes it interesting. The unnecessary effort to do it right shows real skill.

[–] [email protected] 5 points 2 weeks ago (1 children)

Thx for the feedback, I hope you enjoy it.

[–] [email protected] 1 points 2 weeks ago

If you want to make things even more spicy, try doing in pure bash with no external process calls. Things like cat are trivial to replace. I saw some uses of sort that might be more difficult, but it wouldn't surprise me if newer Bash versions had a way to sort arrays nicely.