Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
christos to commandline@programming.devEnglish · 8 days ago

Terminal Tower of Hanoi, in Bash

message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • linux
  • linux_gaming
  • [email protected]
  • [email protected]
1

Terminal Tower of Hanoi, in Bash

christos to commandline@programming.devEnglish · 8 days ago
message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]
  • linux
  • linux_gaming
  • [email protected]
  • [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

alert-triangle
You must log in or # to comment.

commandline@programming.dev

commandline@programming.dev

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]
Visibility: Public
globe

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

  • 1 user / day
  • 11 users / week
  • 34 users / month
  • 90 users / 6 months
  • 392 local subscribers
  • 2.2K subscribers
  • 121 Posts
  • 240 Comments
  • Modlog
  • mods:
  • Erlingur@programming.dev
  • chaoticAnimals@programming.dev
  • Spyros@programming.dev
  • Gamma@programming.dev
  • UI: 0.19.19-4-g32c157fc
  • BE: 0.19.19-8-g30bb3e220
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org