You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anarkali (Pomegranate Blossom) lived in 17th Century India. She feel in love with the Prince and the King built a wall around her to keep her and the Prince apart.
82
+
Anarkali (Pomegranate Blossom) lived in 17th Century India. She fell in love with the Prince and the King built a wall around her to keep her and the Prince apart.
13
83
14
84
*Objective:* Build four walls around your player when she steps onto the trap (and eventually help her escape).
15
85
16
86

17
87
18
-
Before you start, you might want to sketch it out with pencil and paper. What range of coordinates will your walls cover?
88
+
:bulb:Before you start, you might want to sketch it out with pencil and paper. What range of coordinates will your walls cover?
19
89
20
90
File -> New -> Save: anarkali.py
21
91
@@ -40,6 +110,8 @@ while True:
40
110
break# end whlile loop (so we don't keep rebuilding the walls)
41
111
```
42
112
113
+
:bulb: While you experiment, you may need to keep changing your trap position to build a new structure in a different place.
114
+
43
115
Make sure your walls are high enough to Anarkali can't jump out!
44
116
45
117
:bulb: There are faster ways to build structures. Rather than looping and setting a single block at a time, we can set a range of blocks together:
@@ -64,104 +136,19 @@ You can set player position to help Anarkali escape. Use 'time' to wait (3 secon
64
136
mc.player.setPos(x+10, y+10, z+10) # move player to a new position, and watch her fall to earth
65
137
```
66
138
139
+
:trophy: Challenge: What if Anarkali was born in Eygpt not India? Would the king build a tower, or... a Pyramid!
67
140
68
-
The fence, if conditions
69
-
------------------------
70
-
*Objective:* introduce if conditions by detecting on what side of a fence one is
71
-
72
-
* Go to a flat area
73
-
* Build a small fence as shown on the screenshot
74
-
* Step on the fence, and walk along it, to determine its orientation. It will be either *x* or *z*.
75
-
* Once you know what coordinate you built it along, you're ready to write the code
0 commit comments