@@ -15,11 +15,11 @@ game.startCountdown(30000)
15
15
16
16
## {Step 2}
17
17
18
- Create a `` ||arrays:text list || `` of words to guess . You will find ** Arrays** under ** Advanced** .
18
+ Create a new array of words to guess and name it `` ||arrays:wordList || `` . You will find ** Arrays** under ** Advanced** .
19
19
20
20
``` blocks
21
- let text_list : string[] = []
22
- text_list = ["PUPPY", "CLOCK", "NIGHT"]
21
+ let wordList : string[] = []
22
+ wordList = ["PUPPY", "CLOCK", "NIGHT"]
23
23
game.startCountdown(30000)
24
24
```
25
25
@@ -35,29 +35,29 @@ input.onGesture(Gesture.LogoUp, function () {
35
35
36
36
## {Step 4}
37
37
38
- The items in `` ||arrays:text list || `` are numbered `` 0 `` to `` length - 1 `` .
38
+ The items in `` ||arrays:wordList || `` are numbered `` 0 `` to `` length - 1 `` .
39
39
Add code to pick a `` ||math:random|| `` `` ||variables:index|| `` .
40
40
41
41
``` blocks
42
- let text_list : string[] = []
42
+ let wordList : string[] = []
43
43
let index = 0
44
44
input.onGesture(Gesture.LogoUp, function () {
45
45
// @highlight
46
- index = randint(0, text_list .length - 1)
46
+ index = randint(0, wordList .length - 1)
47
47
})
48
48
```
49
49
50
50
## {Step 5}
51
51
52
- Add code to `` ||basic:show|| `` the value of the item stored at `` ||variables:index|| `` in `` ||arrays:text list || `` .
52
+ Add code to `` ||basic:show|| `` the value of the item stored at `` ||variables:index|| `` in `` ||arrays:wordList || `` .
53
53
54
54
``` blocks
55
- let text_list : string[] = []
55
+ let wordList : string[] = []
56
56
let index = 0
57
57
input.onGesture(Gesture.LogoUp, function () {
58
- index = randint(0, text_list .length - 1)
58
+ index = randint(0, wordList .length - 1)
59
59
// @highlight
60
- basic.showString(text_list [index])
60
+ basic.showString(wordList [index])
61
61
})
62
62
```
63
63
@@ -84,7 +84,7 @@ input.onGesture(Gesture.ScreenDown, function () {
84
84
85
85
## {Step 8}
86
86
87
- Add anonther event to run code when the @boardname @ `` ||input:screen|| `` is pointing `` ||input:up|| `` .
87
+ Add another event to run code when the @boardname @ `` ||input:screen|| `` is pointing `` ||input:up|| `` .
88
88
This is the gesture for a pass.
89
89
90
90
``` blocks
0 commit comments