Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
christos to Linux GamingEnglish · 2 days ago

Terminal Tower of Hanoi, in Bash

message-square
11
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • linux
  • [email protected]
75

Terminal Tower of Hanoi, in Bash

christos to Linux GamingEnglish · 2 days ago
message-square
11
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • linux
  • [email protected]

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

https://gitlab.com/christosangel/hanoi

Hanoi is a simple terminal version of the known classical game Tower of Hanoi, written in Bash.

During the game, the user can move left and right, pick disks and drop them in other stacks.

The aim is to move all the disks from the ORIGIN pile to the DESTINATION pile, in as little moves as possible

hanoi.png

  • lornosaj
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    Ah gotcha, TIL something.

    • christosOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 day ago

      Same here

Linux Gaming

linux_gaming

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

No memes/shitposts/low-effort posts, please.

Resources

Help:

  • ProtonDB
  • Are We Anticheat Yet?
  • r/linux_gaming FAQ
  • Fork of an earlier version of the above
  • PCGamingWiki
  • LibreGameWiki

Launchers/Game Library Managers:

  • Faugus Launcher
  • Bottles
  • Lutris
  • Heroic Games Launcher

General:

  • Gaming on Linux
  • Boiling Steam
  • Phoronix
  • Linux VR Adventures

Discord:

  • Gaming on Linux
  • Linux Gamers Group
  • Linux Gaming
  • Lutris

IRC:

  • Gaming on Linux

Matrix:

  • Linux Gamers Group (space)
  • Linux Gamers Group (“home” room)
  • Linux Gaming

Telegram:

  • Gaming on Linux
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 31 users / day
  • 646 users / week
  • 2.86K users / month
  • 9.05K users / 6 months
  • 11K local subscribers
  • 26.2K subscribers
  • 2.48K Posts
  • 34.1K Comments
  • Modlog
  • mods:
  • monolalia
  • UI: 0.19.18-4-g685b50ce
  • BE: 0.19.18-8-g5d8cbdd9d
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org