Welcome to Tower of Hanoi for Google Sheets™ by Avi Megiddo. Bring recursion to life in Google Sheets™. Visualize solving the Tower of Hanoi puzzle with step-by-step moves interactive controls.
Listing updated:May 28, 2025
Works with:
No reviews
26
Overview
Tower of Hanoi for Google Sheets™ by Avi Megiddo is a live recursion simulator. This Add-on transforms your spreadsheet into a dynamic recursion playground. Designed for teachers, students, and self-learners, this visual simulator allows you to explore the logic and flow of recursive problem-solving—live, one move at a time.
Key Features ✅ Clean and colorful simulation of Tower of Hanoi (2–10 disks)
 ✅ Visual animation of recursive disk moves using cell formatting
 ✅ Custom kill switch to stop large stacks in real-time
 ✅ Sidebar interface for tower size and simulation control
 ✅ No scripting experience required — just use the sidebar and watch
 ✅ Perfect for IB MYP Design, AP Computer Science, and self-guided study
How It Works
Launch the sidebar from the custom menu


Choose a tower height (e.g., 3, 5, or 8 disks)


Click “Create Tower” to generate the pegs and disks


Click “Solve Tower” to begin the live recursive simulation


Watch as each move is animated in sequence — no steps skipped


Built with Google Apps Script, this add-on helps students:
See recursion unfold in real time


Understand the flow of base cases and recursive steps


Build mental models of problem-solving in computational systems


Usage Ideal for:
Live classroom demos


Student self-exploration


Instructional design around recursion and algorithmic thinking


Educational Purpose Tower of Hanoi™ was created as a visual aid to deepen understanding of recursion and systems thinking. It’s 100% free to use for educators and students and will always prioritize transparency, simplicity, and clarity.

Additional information
PricingFree of charge
Developer
Privacy policy
Terms of service
Tower of Hanoi Solver will ask for the permissions shown below. Learn more
Tower of Hanoi Solver will need access to your Google account
This will allow Tower of Hanoi Solver to :
View and manage spreadsheets that this application has been installed in
Display and run third-party web content in prompts and sidebars inside Google applications
See your primary Google Account email address
See your personal info, including any personal info you've made publicly available
Reviews
Language:
Sort by:
Google doesn't verify reviews or ratings. Learn more about reviews
No comments
Search
Clear search
Close search
Google apps
Main menu