75
submitted 5 months ago by christos@lemmy.world to c/linux@lemmy.ml

https://gitlab.com/christosangel/nine

nine is a tui implementation of the classic 3x3 sliding-puzzle, in Bash.

There is a 3x3 grid that contains 8 tiles, and one position that is empty.

grid1 grid2

The user can move around the 8 tiles on the only one empty space, using the navigation keys.

The player in order to win, has to put the numbered tiles in order.

win

top 3 comments
sorted by: hot top controversial new old
[-] theshatterstone54@feddit.uk 5 points 5 months ago

I've been looking into learning vim motions (after using vim for nearly 2 years; I know, I know. I was using arrows before that, I'm an idiot), and this game will be very helpful in my process of learning vim motions.

[-] christos@lemmy.world 5 points 5 months ago

I am still using the arrow keys, I must be an idiot , too. If this script helps you with the vim movements, you can check out for the same reason two or three scripts of mine, in the same repo: tui-mines, mneme,tui-sudoku.

[-] victorz@lemmy.world 3 points 5 months ago

How fun! Thanks for sharing! Looking forward to trying them all out.

I just bought a new mechanical keyboard so I'm looking for excuses to use it. 😄

this post was submitted on 02 Apr 2024
75 points (96.3% liked)

Linux

47372 readers
811 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