-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreative task 1.5
60 lines (47 loc) · 2.5 KB
/
creative task 1.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
app.background='black'
### Pawn ###
z0pawn=Group(Circle(199.5,186.5,10,fill='blue',border='black'),
Polygon(194,195,204,195,212,198,210,202,188,202,187,198,fill='green',border='black'),
Rect(194.5,202,10,26,fill='red',border='black'),
Polygon(180,228,184,218,193,210,206,210,216,218,220,228,fill='orange',border='black'))
z0pawn.centerX=25;z0pawn.centerY=325
### Rook ###
z0rook=Group(Polygon(181,175,187,174,189,181,195,180,195,172,203,172,204,180,211,181,212,174,218,174,217,185,213,189,186,189,183,186,fill='blue',border='black'),
Polygon(190,188,210,188,216,214,184,214,fill='green',border='black'),
Polygon(178,228,180,220,184,214,216,214,220,220,222,228,fill='orange',border='black'))
z0rook.centerX=25;z0rook.centerY=375
### Bishop ###
z0bishop=Group(Circle(200,176,6,fill='blue',border='black'),
Oval(200,200,33,40,fill='green',border='black'),
Polygon(197,201,205,201,208,182,200,182),
Polygon(176,228,223,228,219,217,181,217,fill='orange',border='black'))
z0bishop.centerX=125;z0bishop.centerY=375
### Queen ###
z0queen=Group(Polygon(182,213,173,187,185,198,187,177,196,196,205,177,206,198,220,187,209,213,fill='green',border='black'),
Circle(173,187,5,fill='blue',border='black'),
Circle(187,177,5,fill='blue',border='black'),
Circle(205,177,5,fill='blue',border='black'),
Circle(220,187,5,fill='blue',border='black'),
Polygon(175,225,216,225,209,213,182,213,fill='orange',border='black'))
z0queen.centerX=175;z0queen.centerY=375
### King ###
z0king=Group(Polygon(195,169,200,169,200,171,204,171,204,177,200,177,202,208,194,208,193,177,188,177,190,171,fill='blue',border='black'),
Rect(181,196,32,20,fill='green',border='black'),
Circle(182,191,13,fill='red',border='black'),
Circle(212,191,13,fill='red',border='black'),
Rect(190,182,15,25,fill='green',border='black'),
Rect(177,211,40,10,fill='orange',border='black'),
Line(190,183.5,190,207,fill='green',lineWidth=4),
Line(205,183.5,205,207,fill='green',lineWidth=4),
Oval(182,191,14,12,rotateAngle=45,opacity=75),
Oval(212,191,14,12,rotateAngle=-45,opacity=75),
Line(190,207,205,207,lineWidth=8.5,fill='green'),
Oval(197.5,197,12.5,14.5,fill='black',opacity=75))
z0king.centerX=225;z0king.centerY=375
### Knight ###
z0knight=Group(Polygon(180,229,220,229,218,220,183,220,fill='orange',border='black'),
Polygon(185,219,201,203,200,195,183,206,174,201,182,188,184,182,190,178,192,171,208,180,215,186,221,196,220,211,217,219,fill='green',border='black'),
Oval(192,184,10,8,rotateAngle=-45,fill='blue',border='black'))
z0knight.centerX=75;z0knight.centerY=375
def onMousePress(x,y):
pass