forked from sarthakd999/Hacktoberfest2021-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Algorithms
188 lines (188 loc) · 2.59 KB
/
Algorithms
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
Start
Word<- (Blank)
Password<- (blank)
Ask(What day were you born?)
Birthday<- Date of birth
Say (Type which website you are making the password of)
Say (press space when you're done)
Repeat until ( space is pressed)
{
If (key is pressed)
{
Play( (10) Wood Block)
Check which key is pressed
}
If (a is pressed)
{
Password<-Password and 1
Word<- Word and a
LastLetter<- A
}
If (b is pressed)
{
Password<-Password and 2
Word<- Word and b
LastLetter<- B
}
If (c is pressed)
{
Password<-Password and 3
Word<- Word and c
LastLetter<- C
}
If (d is pressed)
{
Password<-Password and 4
Word<- Word and d
LastLetter<- D
}
If (e is pressed)
{
Password<-Password and 5
Word<- Word and e
LastLetter<- E
}
If (f is pressed)
{
Password<-Password and 6
Word<- Word and f
LastLetter<- F
}
If (g is pressed)
{
Password<-Password and 7
Word<- Word and g
LastLetter<- G
}
If (h is pressed)
{
Password<-Password and 8
Word<- Word and h
LastLetter<- H
}
If (i is pressed)
{
Password<-Password and 9
Word<- Word and i
LastLetter<- I
}
If (j is pressed)
{
Password<-Password and 10
Word<- Word and j
LastLetter<- J
}
If (k is pressed)
{
Password<-Password and 11
Word<- Word and k
LastLetter<- K
}
If (l is pressed)
{
Password<-Password and 12
Word<- Word and l
LastLetter<- L
}
If (m is pressed)
{
Password<-Password and 13
Word<- Word and m
LastLetter<- M
}
If (n is pressed)
{
Password<-Password and 14
Word<- Word and n
LastLetter<- N
}
If (o is pressed)
{
Password<-Password and 15
Word<- Word and o
LastLetter<- O
}
If (p is pressed)
{
Password<-Password and 16
Word<- Word and p
LastLetter<- P
}
If (q is pressed)
{
Password<-Password and 17
Word<- Word and q
LastLetter<- Q
}
If (r is pressed)
{
Password<-Password and 18
Word<- Word and r
LastLetter<- R
}
If (s is pressed)
{
Password<-Password and 19
Word<- Word and s
LastLetter<- S
}
If (t is pressed)
{
Password<-Password and 20
Word<- Word and t
LastLetter<- T
}
If (u is pressed)
{
Password<-Password and 21
Word<- Word and u
LastLetter<- U
}
If (v is pressed)
{
Password<-Password and 22
Word<- Word and v
LastLetter<- V
}
If (w is pressed)
{
Password<-Password and 23
Word<- Word and w
LastLetter<- W
}
If (x is pressed)
{
Password<-Password and 24
Word<- Word and x
LastLetter<- X
}
If (y is pressed)
{
Password<-Password and 25
Word<- Word and y
LastLetter<- Y
}
If (z is pressed)
{
Password<-Password and 26
Word<- Word and z
LastLetter<- Z
}
}
If (space is pressed)
{
Password<- Password and LastLetter and Birthday
Say (Your website is..)
Say (Word)
Ask (Is this your website correct)
If( Answer=no)
{
Say (Touch the green flag to restart)
}
Else
{
Say (Your password is…)
Say (Password)
}
}
End