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

  • Marty_TF@lemmy.zip
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    9 hours ago

    bcs u dont need to put one hand on the arrow keys and have to use the other hand for the rest of the keyboard or alternatively jump around with ur hands

    of course this isnt a huge factor in a little game but vim people are used to it. i was sceptical of vim keybinding at first but then i started using it and dam it is true that it’s superior

    • 7eter@feddit.org
      link
      fedilink
      arrow-up
      5
      ·
      9 hours ago

      Agreed! But I also noticed a significant performance difference (in the time that the game take to update the selected stack). It might be due to my lack in cli-gaming, but I never noticed something like that before.

      • christos@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        You noticed correctly, I made the trade off because I wanted to have an extra disk level available (10 instead of 9), but I believe it was not worth it. I updated the script, it is now quite snappier I think, check it out if you wish, and let me know what you think.

        Thanks for the feedback.