$34 GRAYBYTE WORDPRESS FILE MANAGER $46

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib64/python3.12/turtledemo/__pycache__/

HOME
Current File : /usr/lib64/python3.12/turtledemo/__pycache__//minimal_hanoi.cpython-312.pyc
�

�֦i���dZddl�Gd�de�ZGd�de�Zd�Zd�Zd	�Ze	d
k(re�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��eZdZd�Zy)�Discc���tj|dd��|j�|jd|dzd�|j	|dzdd|dzz
�|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
�rrrrs��rrc�"�eZdZdZd�Zd�Zd�Zy)�Towerz-Hanoi tower, a subclass of built-in type listc��||_y)z-create an empty tower. x is x-position of pegN)�x)rrs  rr
zTower.__init__ s	����rc��|j|j�|jddt|�zz�|j	|�y)Nij����")�setxr�sety�len�append�r�ds  r�pushz
Tower.push#s5��	���t�v�v��	���t�B�s�4�y�L� �!����A�rc�R�tj|�}|jd�|S)N�)�list�popr!r$s  rr*z	Tower.pop's���H�H�T�N��	���s���rN)rrr�__doc__r
r&r*rrrrrs��3���rrc��|dkDrBt|dz
|||�|j|j��t|dz
|||�yy)Nrr)�hanoir&r*)r�from_�with_�to_s    rr-r-,sD���1�u�
�a��c�5�#�u�%���������
�a��c�5�%��%�
rc��tdd�t�	tdttt
�t
ddd��y#t$rYywxYw)N�space�zpress STOP button to exit�center��Courier��bold��align�font)�onkey�clearr-�t1�t2�t3�write�
Terminatorrrr�playrC2sG��	�$�w��	�G�
�
�a��R���
�)��#:�	<���
��
�s�(A�	A
�A
c�6�t�t�tdd�td�atd�atd�atddd�D] }tjt|���"tddd	�
�ttd�t�y)
Nri���i����r3���zpress spacebar to start gamer4r5r9r2�	EVENTLOOP)�ht�penup�gotorr>r?r@�ranger&rrAr<rC�listen)�is r�mainrN<su���D�%�'�4��4�=�	�t��B�	�q��B�	�s��B�
�1�Q�r�]��
����Q����
�
(��6�8�	�$���
�H�r�__main__N)
r+�turtlerrr)rr-rCrNr�msg�print�mainlooprrr�<module>rTsX���$��6���D��&�
�� �Z��
�&�C�	�#�J��J�r

Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
26 May 2026 8.05 AM
root / root
0755
__init__.cpython-312.opt-1.pyc
0.457 KB
27 Apr 2026 4.36 PM
root / root
0644
__init__.cpython-312.opt-2.pyc
0.143 KB
27 Apr 2026 4.36 PM
root / root
0644
__init__.cpython-312.pyc
0.457 KB
27 Apr 2026 4.36 PM
root / root
0644
__main__.cpython-312.opt-1.pyc
20.972 KB
27 Apr 2026 4.36 PM
root / root
0644
__main__.cpython-312.opt-2.pyc
17.816 KB
27 Apr 2026 4.36 PM
root / root
0644
__main__.cpython-312.pyc
20.972 KB
27 Apr 2026 4.36 PM
root / root
0644
bytedesign.cpython-312.opt-1.pyc
8.007 KB
27 Apr 2026 4.36 PM
root / root
0644
bytedesign.cpython-312.opt-2.pyc
7.535 KB
27 Apr 2026 4.36 PM
root / root
0644
bytedesign.cpython-312.pyc
8.007 KB
27 Apr 2026 4.36 PM
root / root
0644
chaos.cpython-312.opt-1.pyc
2.42 KB
27 Apr 2026 4.36 PM
root / root
0644
chaos.cpython-312.opt-2.pyc
2.42 KB
27 Apr 2026 4.36 PM
root / root
0644
chaos.cpython-312.pyc
2.42 KB
27 Apr 2026 4.36 PM
root / root
0644
clock.cpython-312.opt-1.pyc
6.17 KB
27 Apr 2026 4.36 PM
root / root
0644
clock.cpython-312.opt-2.pyc
5.941 KB
27 Apr 2026 4.36 PM
root / root
0644
clock.cpython-312.pyc
6.17 KB
27 Apr 2026 4.36 PM
root / root
0644
colormixer.cpython-312.opt-1.pyc
3.242 KB
27 Apr 2026 4.36 PM
root / root
0644
colormixer.cpython-312.opt-2.pyc
3.242 KB
27 Apr 2026 4.36 PM
root / root
0644
colormixer.cpython-312.pyc
3.242 KB
27 Apr 2026 4.36 PM
root / root
0644
forest.cpython-312.opt-1.pyc
4.962 KB
27 Apr 2026 4.36 PM
root / root
0644
forest.cpython-312.opt-2.pyc
4.646 KB
27 Apr 2026 4.36 PM
root / root
0644
forest.cpython-312.pyc
4.962 KB
27 Apr 2026 4.36 PM
root / root
0644
fractalcurves.cpython-312.opt-1.pyc
5.641 KB
27 Apr 2026 4.36 PM
root / root
0644
fractalcurves.cpython-312.opt-2.pyc
5.338 KB
27 Apr 2026 4.36 PM
root / root
0644
fractalcurves.cpython-312.pyc
5.641 KB
27 Apr 2026 4.36 PM
root / root
0644
lindenmayer.cpython-312.opt-1.pyc
3.677 KB
27 Apr 2026 4.36 PM
root / root
0644
lindenmayer.cpython-312.opt-2.pyc
3.182 KB
27 Apr 2026 4.36 PM
root / root
0644
lindenmayer.cpython-312.pyc
3.677 KB
27 Apr 2026 4.36 PM
root / root
0644
minimal_hanoi.cpython-312.opt-1.pyc
3.884 KB
27 Apr 2026 4.36 PM
root / root
0644
minimal_hanoi.cpython-312.opt-2.pyc
3.303 KB
27 Apr 2026 4.36 PM
root / root
0644
minimal_hanoi.cpython-312.pyc
3.884 KB
27 Apr 2026 4.36 PM
root / root
0644
nim.cpython-312.opt-1.pyc
13.167 KB
27 Apr 2026 4.36 PM
root / root
0644
nim.cpython-312.opt-2.pyc
12.968 KB
27 Apr 2026 4.36 PM
root / root
0644
nim.cpython-312.pyc
13.167 KB
27 Apr 2026 4.36 PM
root / root
0644
paint.cpython-312.opt-1.pyc
2.024 KB
27 Apr 2026 4.36 PM
root / root
0644
paint.cpython-312.opt-2.pyc
1.399 KB
27 Apr 2026 4.36 PM
root / root
0644
paint.cpython-312.pyc
2.024 KB
27 Apr 2026 4.36 PM
root / root
0644
peace.cpython-312.opt-1.pyc
1.769 KB
27 Apr 2026 4.36 PM
root / root
0644
peace.cpython-312.opt-2.pyc
1.552 KB
27 Apr 2026 4.36 PM
root / root
0644
peace.cpython-312.pyc
1.769 KB
27 Apr 2026 4.36 PM
root / root
0644
penrose.cpython-312.opt-1.pyc
7.029 KB
27 Apr 2026 4.36 PM
root / root
0644
penrose.cpython-312.opt-2.pyc
6.625 KB
27 Apr 2026 4.36 PM
root / root
0644
penrose.cpython-312.pyc
7.029 KB
27 Apr 2026 4.36 PM
root / root
0644
planet_and_moon.cpython-312.opt-1.pyc
6.145 KB
27 Apr 2026 4.36 PM
root / root
0644
planet_and_moon.cpython-312.opt-2.pyc
5.707 KB
27 Apr 2026 4.36 PM
root / root
0644
planet_and_moon.cpython-312.pyc
6.145 KB
27 Apr 2026 4.36 PM
root / root
0644
rosette.cpython-312.opt-1.pyc
2.753 KB
27 Apr 2026 4.36 PM
root / root
0644
rosette.cpython-312.opt-2.pyc
2.419 KB
27 Apr 2026 4.36 PM
root / root
0644
rosette.cpython-312.pyc
2.753 KB
27 Apr 2026 4.36 PM
root / root
0644
round_dance.cpython-312.opt-1.pyc
2.749 KB
27 Apr 2026 4.36 PM
root / root
0644
round_dance.cpython-312.opt-2.pyc
2.165 KB
27 Apr 2026 4.36 PM
root / root
0644
round_dance.cpython-312.pyc
2.749 KB
27 Apr 2026 4.36 PM
root / root
0644
sorting_animate.cpython-312.opt-1.pyc
9.999 KB
27 Apr 2026 4.36 PM
root / root
0644
sorting_animate.cpython-312.opt-2.pyc
9.554 KB
27 Apr 2026 4.36 PM
root / root
0644
sorting_animate.cpython-312.pyc
9.999 KB
27 Apr 2026 4.36 PM
root / root
0644
tree.cpython-312.opt-1.pyc
2.475 KB
27 Apr 2026 4.36 PM
root / root
0644
tree.cpython-312.opt-2.pyc
1.906 KB
27 Apr 2026 4.36 PM
root / root
0644
tree.cpython-312.pyc
2.475 KB
27 Apr 2026 4.36 PM
root / root
0644
two_canvases.cpython-312.opt-1.pyc
2.229 KB
27 Apr 2026 4.36 PM
root / root
0644
two_canvases.cpython-312.opt-2.pyc
2.028 KB
27 Apr 2026 4.36 PM
root / root
0644
two_canvases.cpython-312.pyc
2.229 KB
27 Apr 2026 4.36 PM
root / root
0644
yinyang.cpython-312.opt-1.pyc
1.622 KB
27 Apr 2026 4.36 PM
root / root
0644
yinyang.cpython-312.opt-2.pyc
1.438 KB
27 Apr 2026 4.36 PM
root / root
0644
yinyang.cpython-312.pyc
1.622 KB
27 Apr 2026 4.36 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF