ScratchData LogoScratchData
Back to gregatku's profile

Tower of Hanoi (List Hacks)

GRgregatku•Created December 13, 2016
Tower of Hanoi (List Hacks)
2
1
86 views
View on Scratch

Instructions

Tower of HANOI (using "hacked" list blocks for more efficient code) Select how many discs (3-7) you want then Click the Green Flag. To play manually Hit a pair of keys (FROM-TO) being either A-B, A-C, B-A, B-C, C-A or C-B. Impossible, pointless (A-A) or illegal (placing a disc on top of a smaller one) moves will be disallowed. Or you can get it solved for you by clicking the "Solve It" button.

Description

Created by @gregatku for use in Coding Classes for Kids Unlimited, for whom I work as a Coding teacher. Simpler logic and much less code here by using special "hacked" list blocks from @applepie2 (who may have got them from @-TheHacker- or @JuegOStrower) so you can refer to list blocks by a string being the list name, rather than having to choose from a drop-down selector.

Project Details

Project ID136323804
CreatedDecember 13, 2016
Last ModifiedJuly 23, 2021
SharedDecember 14, 2016
Visibilityvisible
CommentsAllowed