Your IP : 18.116.27.225


Current Path : /usr/lib64/python3.8/turtledemo/__pycache__/
Upload File :
Current File : //usr/lib64/python3.8/turtledemo/__pycache__/minimal_hanoi.cpython-38.opt-2.pyc

U

e5d�@s`ddlTGdd�de�ZGdd�de�Zdd�Zdd	�Zd
d�Zedkr\e�Z	e
e	�e�d
S)�)�*c@seZdZdd�ZdS)�DisccCsPtj|ddd�|��|�d|dd�|�|ddd|d�|��dS)	NZsquareF)�shapeZvisibleg�?�g@r�)�Turtle�__init__ZpuZ	shapesizeZ	fillcolor�st)�self�n�r�0/usr/lib64/python3.8/turtledemo/minimal_hanoi.pyrs
z
Disc.__init__N)�__name__�
__module__�__qualname__rrrrr
rsrc@s$eZdZdd�Zdd�Zdd�ZdS)�TowercCs
||_dS)N)�x)r
rrrr
r szTower.__init__cCs0|�|j�|�ddt|��|�|�dS)Nij����")Zsetxr�sety�len�append�r
�drrr
�push#sz
Tower.pushcCst�|�}|�d�|S)N�)�list�poprrrrr
r's

z	Tower.popN)rrrrrrrrrr
rsrcCs>|dkr:t|d|||�|�|���t|d|||�dS)Nrr)�hanoirr)rZfrom_Zwith_Zto_rrr
r,srcCsJtdd�t�z tdttt�tdddd�Wntk
rDYnXdS)N�space�zpress STOP button to exit�center�ZCourier�Zbold�ZalignZfont)�onkey�clearr�t1�t2�t3�writeZ
Terminatorrrrr
�play2s
�
r*cCspt�t�tdd�td�atd�atd�atddd�D]}t�t	|��q:t
ddd	d
�ttd�t
�dS)
Nri���i����r���zpress spacebar to start gamer r!r#rZ	EVENTLOOP)ZhtZpenupZgotorr&r'r(�rangerrr)r$r*Zlisten)�irrr
�main<s
�
r/�__main__N)Zturtlerrrrrr*r/r�msg�printZmainlooprrrr
�<module>s


?>