Tips & strategy
Think recursively. To move a stack of five, you first move the top four out of the way, move the biggest disc across, then move those four on top of it. Every size of puzzle reduces to a slightly smaller version of itself, and that insight solves the whole thing.
Watch the smallest disc. In the optimal solution it moves every other turn, always in the same rotational direction around the pegs. If you keep the little one circling steadily and make the only legal move in between, you are playing perfectly without having to calculate anything.
Know your target. The minimum number of moves is always one less than two to the power of the number of discs, so three discs need seven moves and five need thirty-one. Knowing the number tells you immediately whether you are on the optimal path or wandering.
Do not undo your own work. The most common mistake is moving a disc back where it came from a turn later, which wastes two moves and usually means you had no plan. If you find yourself shuffling the same disc back and forth, stop and think about which peg the big disc needs to reach.