-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonopoly_board_OLD.py
More file actions
105 lines (97 loc) · 1.54 KB
/
monopoly_board_OLD.py
File metadata and controls
105 lines (97 loc) · 1.54 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import turtle as t
from random import random
t.speed(0)
t.up()
t.goto(-455, -455)
t.down()
t.goto(455, -455)
t.goto(455, 455)
t.goto(-455, 455)
t.goto(-455, -455)
#for i in range(4):
# t.forward(500)
# t.left(90)
width = 70
run = 0
t.goto(-455, 315)
t.forward(140)
for i in range(9):
run = run + 1
t.up()
t.goto(-455,315-(width*run))
t.down()
t.forward(140)
t.up()
t.goto(455, 315)
t.down()
t.forward(-140)
run = 0
for i in range(9):
run = run + 1
t.up()
t.goto(455,315-(width*run))
t.down()
t.forward(-140)
t.up()
t.goto(-315, 455)
t.down()
t.left(-90)
t.forward(140)
run = 0
for i in range(9):
run = run + 1
t.up()
t.goto(-315+(width*run), 455)
t.down()
t.forward(140)
t.up()
t.goto(-315, -455)
t.down()
t.left(180)
t.forward(140)
run = 0
for i in range(9):
run = run + 1
t.up()
t.goto(-315+(width*run), -455)
t.down()
t.forward(140)
t.up()
t.goto(-315, 315)
t.down()
for i in range(4):
t.left(-90)
t.forward(630)
t.up()
#background square
t.goto(0,0)
t.shape("square")
t.shapesize(31,31)
t.fillcolor("turquoise")
t.stamp()
t.hideturtle()
t.clone()
t.showturtle()
#chance cards area on board
t.goto(190, -190)
t.shape("square")
t.shapesize(10,5)
t.tilt(-135)
t.fillcolor("orange")
t.up()
t.clone()
#community chest area on board
t.goto(-190, 190)
t.shape("square")
t.shapesize(10,5)
t.tilt(0)
t.fillcolor("skyblue")
t.stamp()
t.hideturtle()
banner = t.Turtle()
wn = t.Screen()
banner.penup()
wn.addshape("monopolycenter1.gif")
banner.shape("monopolycenter1.gif")
banner.setpos(0, -20)
t.mainloop()