-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst_app.yml
101 lines (101 loc) · 1.77 KB
/
first_app.yml
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
- helloworld:
- say:
- what: Hello
- say:
- what: Please enter your name
- store:
- what: input
- to: name
- say:
- what:
- concat:
- Hello,
- get_store:
- from: name
- "!"
- "\n"
- Welcome
- ifeq:
- val1:
- get_store:
- from: name
- val2: Bas
- then:
- say:
- what: Oh, you're Bas!
- say:
- what: -------------------------------
- say:
- what: Secret number guessing game! You have 3 tries
- repeat:
- 3
- what:
- say:
- what: Enter a secret code
- store:
- what: input
- to: number
- ifeq:
- val1:
- get_store:
- from: number
- val2: 123
- then:
- say:
- what: That's right!
- break
- else:
- say:
- what: That's wrong
- say:
- what: -------------------------------
- store:
- what: 10
- to: secret_number
- say:
- what: Access Internal Secret storage. What is the name of the internal secret storage?
- store:
- what: input
- to: secret_store
- say:
- what:
- get_store:
- from:
- get_store:
- from: secret_store
- say:
- what: -------------------------------
- say:
- what: "Type the first number for addition"
- store:
- to: sum1
- what: input
- say:
- what: "Type the second number for addition"
- store:
- what: input
- to: sum2
- say:
- what:
- plus:
- get_store:
- from: sum1
- get_store:
- from: sum2
- say:
- what:
- concat:
- "The result is: "
- get_store:
- from: sum1
- "+"
- get_store:
- from: sum2
- "="
- plus:
- get_store:
- from: sum1
- get_store:
- from: sum2
- say:
- what: -------------------------------