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

you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 1 month ago* (1 child)

1023 for 10 disks, 5011 for 9 disks

More moves for less disks?

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 8 points 1 month ago (1 child)

    Yup, this is fat finger mathematics. The correct number is 511, somehow zero got in the way.

  • source
  • parent
  • hideshow 2 child comments