Skip to main content

Pyramid Puzzle

This is the Tower of Hanoi classical puzzle implementation in Python language using pygame library

Nikolay Panekin
The puzzle consists of three rods and a number of disks of different diameters, which can slide onto any rod. The game starts with the disks stacked on one rod in order of decreasing size, the smallest at the top, thus approximating a conical shape. The objective of the puzzle is to move the entire stack to the last rod, obeying the following simple rules: 1. Only one disk may be moved at a time. 2. Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack or an empty rod. 3. No disk may be placed on top of a disk that is smaller than it.



Home Page


Pyramid Puzzle 1.0 — 24 May, 2021 account Comments