__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
�
�֦i � � � d Z ddl� G d� de� Z G d� de� Zd� Zd� Zd � Ze d
k( r e� Z
ee
� e� yy)a� 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
---------------------------------------
� )�*c � � e Zd Zd� Zy)�Discc �� � t j | dd�� | j � | j d|dz d� | j |dz dd|dz z
� | j � y ) N�squareF)�shape�visibleg �?� g @r � )�Turtle�__init__�pu� shapesize� fillcolor�st)�self�ns �1/usr/lib64/python3.12/turtledemo/minimal_hanoi.pyr
z
Disc.__init__ sV � �����H�e��<���� ����s�A�c�E�1�%����q��t�Q��!�B�$��'���� � N)�__name__�
__module__�__qualname__r
� r r r r s � �r r c �"