564
you are viewing a single comment's thread
view the rest of the comments
[-] Australis13@fedia.io 45 points 1 day ago

The Tower of Hanoi is just a game for children?

I don't think most people would manage the optimal solution first go (1023 moves for a 10-piece game).

[-] Tartas1995@discuss.tchncs.de 12 points 1 day ago

Most people? 100% not. Me who has probably autism and has internalised the algorithm, I can.

I love and hate my brain.

[-] Naz@sh.itjust.works 3 points 1 day ago

I thought I was clever, it took me 300 moves with only 8 disks.

Literally just easier to pick up the entire pile and move it over, or rotate the entire game and say Tower #1 is Tower #3 now.

[-] Tartas1995@discuss.tchncs.de 3 points 1 day ago

The thing is... not doing it at all, is better than doing those 300 moves. What made you do this? Also a bit spicy?

[-] Naz@sh.itjust.works 2 points 1 day ago

I was sliding it back and forth as fast as I could, because I didn't understand the puzzle at first, but then I saw there's an sorting optimization puzzle and thought that I was clever only to find out it's tedium.

Halfway through (or so I thought at move 80), I was just curious to see how ridiculously long the puzzle could be, shifting pieces back and forth

So the answer was: I thought the puzzle was easy, and I was humbled, and stubborn.

I solved it and wasted time, and used that time to warn others to not bother with the puzzle

[-] Tartas1995@discuss.tchncs.de 3 points 1 day ago

I can respect that. Focused, determined, protective!

I thought it was fun...

[-] Siethron@lemmy.world 5 points 1 day ago

Well the children don't have to move one piece at a time, they just take all the rings off then put them on in the right order. So the optimal moves for a child is 4.

[-] SpaceNoodle@lemmy.world 12 points 1 day ago

Determining the correct algorithm is a game for children

[-] Kazumara@discuss.tchncs.de 5 points 1 day ago

Once you have it figured out, just mechanically doing it all correctly for 1023 steps is also annoying.

I did it up to the 511 moves for the 9-pice game on Android once, and according to the stats page that took me 6 min 18 seconds. The 10-piece version does not have a time, so I think I gave up :-)

this post was submitted on 01 Jun 2026
564 points (99.0% liked)

Programmer Humor

31647 readers
711 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS