Current Path: > > lib64 > python3.8 > turtledemo > __pycache__ >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-38.opt-1.pyc | File | 456 bytes | October 17 2023 18:13:06. | |
__init__.cpython-38.opt-2.pyc | File | 134 bytes | October 17 2023 18:13:08. | |
__init__.cpython-38.pyc | File | 456 bytes | October 17 2023 18:13:06. | |
__main__.cpython-38.opt-1.pyc | File | 13146 bytes | October 17 2023 18:13:06. | |
__main__.cpython-38.opt-2.pyc | File | 9911 bytes | October 17 2023 18:13:08. | |
__main__.cpython-38.pyc | File | 13146 bytes | October 17 2023 18:13:06. | |
bytedesign.cpython-38.opt-1.pyc | File | 4275 bytes | October 17 2023 18:13:06. | |
bytedesign.cpython-38.opt-2.pyc | File | 3788 bytes | October 17 2023 18:13:08. | |
bytedesign.cpython-38.pyc | File | 4275 bytes | October 17 2023 18:13:06. | |
chaos.cpython-38.opt-1.pyc | File | 1714 bytes | October 17 2023 18:13:06. | |
chaos.cpython-38.opt-2.pyc | File | 1714 bytes | October 17 2023 18:13:06. | |
chaos.cpython-38.pyc | File | 1714 bytes | October 17 2023 18:13:06. | |
clock.cpython-38.opt-1.pyc | File | 3493 bytes | October 17 2023 18:13:06. | |
clock.cpython-38.opt-2.pyc | File | 3258 bytes | October 17 2023 18:13:08. | |
clock.cpython-38.pyc | File | 3493 bytes | October 17 2023 18:13:06. | |
colormixer.cpython-38.opt-1.pyc | File | 1820 bytes | October 17 2023 18:13:06. | |
colormixer.cpython-38.opt-2.pyc | File | 1820 bytes | October 17 2023 18:13:06. | |
colormixer.cpython-38.pyc | File | 1820 bytes | October 17 2023 18:13:06. | |
forest.cpython-38.opt-1.pyc | File | 3325 bytes | October 17 2023 18:13:06. | |
forest.cpython-38.opt-2.pyc | File | 2997 bytes | October 17 2023 18:13:08. | |
forest.cpython-38.pyc | File | 3325 bytes | October 17 2023 18:13:06. | |
fractalcurves.cpython-38.opt-1.pyc | File | 2889 bytes | October 17 2023 18:13:06. | |
fractalcurves.cpython-38.opt-2.pyc | File | 2575 bytes | October 17 2023 18:13:08. | |
fractalcurves.cpython-38.pyc | File | 2889 bytes | October 17 2023 18:13:06. | |
lindenmayer.cpython-38.opt-1.pyc | File | 2814 bytes | October 17 2023 18:13:06. | |
lindenmayer.cpython-38.opt-2.pyc | File | 2303 bytes | October 17 2023 18:13:08. | |
lindenmayer.cpython-38.pyc | File | 2814 bytes | October 17 2023 18:13:06. | |
minimal_hanoi.cpython-38.opt-1.pyc | File | 2827 bytes | October 17 2023 18:13:06. | |
minimal_hanoi.cpython-38.opt-2.pyc | File | 2219 bytes | October 17 2023 18:13:08. | |
minimal_hanoi.cpython-38.pyc | File | 2827 bytes | October 17 2023 18:13:06. | |
nim.cpython-38.opt-1.pyc | File | 7341 bytes | October 17 2023 18:13:06. | |
nim.cpython-38.opt-2.pyc | File | 7133 bytes | October 17 2023 18:13:08. | |
nim.cpython-38.pyc | File | 7341 bytes | October 17 2023 18:13:06. | |
paint.cpython-38.opt-1.pyc | File | 1633 bytes | October 17 2023 18:13:06. | |
paint.cpython-38.opt-2.pyc | File | 989 bytes | October 17 2023 18:13:08. | |
paint.cpython-38.pyc | File | 1633 bytes | October 17 2023 18:13:06. | |
peace.cpython-38.opt-1.pyc | File | 1120 bytes | October 17 2023 18:13:06. | |
peace.cpython-38.opt-2.pyc | File | 894 bytes | October 17 2023 18:13:08. | |
peace.cpython-38.pyc | File | 1120 bytes | October 17 2023 18:13:06. | |
penrose.cpython-38.opt-1.pyc | File | 4672 bytes | October 17 2023 18:13:06. | |
penrose.cpython-38.opt-2.pyc | File | 4254 bytes | October 17 2023 18:13:08. | |
penrose.cpython-38.pyc | File | 4672 bytes | October 17 2023 18:13:06. | |
planet_and_moon.cpython-38.opt-1.pyc | File | 3486 bytes | October 17 2023 18:13:06. | |
planet_and_moon.cpython-38.opt-2.pyc | File | 3034 bytes | October 17 2023 18:13:08. | |
planet_and_moon.cpython-38.pyc | File | 3486 bytes | October 17 2023 18:13:06. | |
rosette.cpython-38.opt-1.pyc | File | 1704 bytes | October 17 2023 18:13:06. | |
rosette.cpython-38.opt-2.pyc | File | 1358 bytes | October 17 2023 18:13:08. | |
rosette.cpython-38.pyc | File | 1704 bytes | October 17 2023 18:13:06. | |
round_dance.cpython-38.opt-1.pyc | File | 1905 bytes | October 17 2023 18:13:06. | |
round_dance.cpython-38.opt-2.pyc | File | 1303 bytes | October 17 2023 18:13:08. | |
round_dance.cpython-38.pyc | File | 1905 bytes | October 17 2023 18:13:06. | |
sorting_animate.cpython-38.opt-1.pyc | File | 6370 bytes | October 17 2023 18:13:06. | |
sorting_animate.cpython-38.opt-2.pyc | File | 5906 bytes | October 17 2023 18:13:08. | |
sorting_animate.cpython-38.pyc | File | 6370 bytes | October 17 2023 18:13:06. | |
tree.cpython-38.opt-1.pyc | File | 1727 bytes | October 17 2023 18:13:06. | |
tree.cpython-38.opt-2.pyc | File | 1134 bytes | October 17 2023 18:13:08. | |
tree.cpython-38.pyc | File | 1727 bytes | October 17 2023 18:13:06. | |
two_canvases.cpython-38.opt-1.pyc | File | 1266 bytes | October 17 2023 18:13:06. | |
two_canvases.cpython-38.opt-2.pyc | File | 1056 bytes | October 17 2023 18:13:08. | |
two_canvases.cpython-38.pyc | File | 1266 bytes | October 17 2023 18:13:06. | |
yinyang.cpython-38.opt-1.pyc | File | 1069 bytes | October 17 2023 18:13:06. | |
yinyang.cpython-38.opt-2.pyc | File | 877 bytes | October 17 2023 18:13:08. | |
yinyang.cpython-38.pyc | File | 1069 bytes | October 17 2023 18:13:06. |
U e5dq � @ s� d Z ddlZddlZddlZdZdZdZdZed Zeed d ed d Z dZ dZd Zdd� Z dd� Zdd� ZG dd� de�ZG dd� dej�ZG dd� de�ZG dd� de�ZG dd� de�Zdd� Zed kr�e� e�� dS )!z� turtle-example-suite: tdemo_nim.py Play nim against the computer. The player who takes the last stick is the winner. Implements the model-view-controller design pattern. � Ni� i� � � � � � � )�? r r )� �� r )r r r c C s t �tt�S �N)�random�randint� MINSTICKS� MAXSTICKS� r r �&/usr/lib64/python3.8/turtledemo/nim.py� randomrow s r c C sb | d | d A | d A }|dkr(t | �S td�D ],}| | |A }|| | kr0||f}| S q0d S )Nr � r � )� randommove�range)�stateZxored�z�s�mover r r �computerzug! s r c C sH t | �}t�dd�}| | |dkkrq(qt�|dk| | d �}||fS )Nr r r )�maxr r )r �mr Zrandr r r r + s r c @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d � ZdS )�NimModelc C s || _ d S r )�game)�selfr r r r �__init__6 s zNimModel.__init__c C sP | j jtjtjfkrd S t� t� t� g| _d| _d | _| j j � � tj| j _d S �Nr )r r �Nim�CREATED�OVERr �sticks�player�winner�view�setup�RUNNING�r r r r r* 9 s zNimModel.setupc C s� | j | }|| j |<