/usr/lib64/python2.6/Demo/turtle
Edit: /usr/lib64/python2.6/Demo/turtle/tdemo_minimal_hanoi.pyo (3595B)
Ñò
í gc @ s d Z d d k Td e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d „ Z d „ Z e d
j o e ƒ Z
e
GHe ƒ n d S( sã turtle-example-suite:
tdemo_minimal_hanoi.py
A minimal 'Towers of Hanoi' animation:
A tower of 6 discs is transferred from the
left to the right peg.
An imho quite elegant and concise
implementation using a tower class, which
is derived from the built-in type list.
Discs are turtles with shape "square", but
stretched to rectangles by shapesize()
---------------------------------------
To exit press STOP button
---------------------------------------
iÿÿÿÿ( t *t Discc B s e Z d „ Z RS( c C sg t i | d d d t ƒ| i ƒ | i d | d d ƒ | i | d d d | d ƒ | i ƒ d S( Nt shapet squaret visibleg ø?i g @i i ( t Turtlet __init__t Falset put shapesizet fillcolort st( t selft n( ( s7 /usr/lib64/python2.6/Demo/turtle/tdemo_minimal_hanoi.pyR s
( t __name__t
__module__R ( ( ( s7 /usr/lib64/python2.6/Demo/turtle/tdemo_minimal_hanoi.pyR s t Towerc B s) e Z d Z d „ Z d „ Z d „ Z RS( s- Hanoi tower, a subclass of built-in type listc C s
| | _ d S( s- create an empty tower. x is x-position of pegN( t x( R R ( ( s7 /usr/lib64/python2.6/Demo/turtle/tdemo_minimal_hanoi.pyR s c C s<