This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Solve 'Towers of Hanoi'""" | |
import pylab as p; | |
import mpl_toolkits.mplot3d.axes3d as p3; | |
def solve(g,n): | |
X = [sum(g[0])] | |
Y = [sum(g[1])] | |
Z = [sum(g[2])] | |
moved = 0 |
NewerOlder