Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.130
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python33 /
lib64 /
python3.3 /
turtledemo /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-05-01 04:20
__init__.py
0
B
-rw-r--r--
2024-04-17 20:28
__main__.py
9.16
KB
-rwxr-xr-x
2024-04-17 20:28
about_turtle.txt
3.46
KB
-rw-r--r--
2017-09-19 12:02
about_turtledemo.txt
307
B
-rw-r--r--
2017-09-19 12:02
bytedesign.py
4.16
KB
-rwxr-xr-x
2024-04-17 20:28
chaos.py
953
B
-rw-r--r--
2024-04-17 20:28
clock.py
2.96
KB
-rwxr-xr-x
2024-04-17 20:28
colormixer.py
1.4
KB
-rw-r--r--
2024-04-17 20:28
demohelp.txt
2.21
KB
-rw-r--r--
2017-09-19 12:02
forest.py
2.93
KB
-rwxr-xr-x
2024-04-17 20:28
fractalcurves.py
3.39
KB
-rwxr-xr-x
2024-04-17 20:28
lindenmayer.py
2.39
KB
-rwxr-xr-x
2024-04-17 20:28
minimal_hanoi.py
1.93
KB
-rwxr-xr-x
2024-04-17 20:28
nim.py
6.35
KB
-rw-r--r--
2024-04-17 20:28
paint.py
1.11
KB
-rwxr-xr-x
2024-04-17 20:28
peace.py
1.1
KB
-rwxr-xr-x
2024-04-17 20:28
penrose.py
3.47
KB
-rwxr-xr-x
2024-04-17 20:28
planet_and_moon.py
2.81
KB
-rwxr-xr-x
2024-04-17 20:28
round_dance.py
1.76
KB
-rw-r--r--
2024-04-17 20:28
tree.py
1.4
KB
-rwxr-xr-x
2024-04-17 20:28
turtle.cfg
160
B
-rw-r--r--
2017-09-19 12:02
two_canvases.py
972
B
-rwxr-xr-x
2024-04-17 20:28
wikipedia.py
1.32
KB
-rw-r--r--
2024-04-17 20:28
yinyang.py
833
B
-rwxr-xr-x
2024-04-17 20:28
Save
Rename
#! /opt/alt/python33/bin/python3.3 """ 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 --------------------------------------- """ from turtle import * class Disc(Turtle): def __init__(self, n): Turtle.__init__(self, shape="square", visible=False) self.pu() self.shapesize(1.5, n*1.5, 2) # square-->rectangle self.fillcolor(n/6., 0, 1-n/6.) self.st() class Tower(list): "Hanoi tower, a subclass of built-in type list" def __init__(self, x): "create an empty tower. x is x-position of peg" self.x = x def push(self, d): d.setx(self.x) d.sety(-150+34*len(self)) self.append(d) def pop(self): d = list.pop(self) d.sety(150) return d def hanoi(n, from_, with_, to_): if n > 0: hanoi(n-1, from_, to_, with_) to_.push(from_.pop()) hanoi(n-1, with_, from_, to_) def play(): onkey(None,"space") clear() hanoi(6, t1, t2, t3) write("press STOP button to exit", align="center", font=("Courier", 16, "bold")) def main(): global t1, t2, t3 ht(); penup(); goto(0, -225) # writer turtle t1 = Tower(-250) t2 = Tower(0) t3 = Tower(250) # make tower of 6 discs for i in range(6,0,-1): t1.push(Disc(i)) # prepare spartanic user interface ;-) write("press spacebar to start game", align="center", font=("Courier", 16, "bold")) onkey(play, "space") listen() return "EVENTLOOP" if __name__=="__main__": msg = main() print(msg) mainloop()