WEBVTT

0
00:00.080 --> 00:02.780
Hey, you've reached the final project.

1
00:02.780 --> 00:09.530
And as you've seen at the beginning of today's lessons, I showed you what we're going to be making,

2
00:09.530 --> 00:12.590
which is a sort of, Choose Your Own Adventure Game.

3
00:12.590 --> 00:14.000
I don't know if you've ever read those,

4
00:14.000 --> 00:20.120
"Choose Your Own Adventure Books," where you flip to a different page if you make a particular choice,

5
00:20.120 --> 00:24.200
and then the story kind of evolves as you make your choices.

6
00:24.200 --> 00:30.050
Now we're going to make a very simple version of that using what we've learned about conditionals,

7
00:30.050 --> 00:34.550
if, else, elif statements, as well as everything we've done previously.

8
00:34.550 --> 00:38.390
So you've already seen what the final outcome should look like,

9
00:38.390 --> 00:44.600
and if you want to review it again, just head over to the link in the URL box or click in the Course

10
00:44.600 --> 00:47.300
Resources and it'll direct link you here.

11
00:47.510 --> 00:51.320
And here you'll see essentially the game in action.

12
00:51.320 --> 00:55.120
So it start off asking you, "You're at a crossroad.

13
00:55.120 --> 00:56.740
Do you want to go left or right?"

14
00:56.740 --> 00:59.320
And then you have to type your choice.

15
00:59.920 --> 01:04.300
If you selected left, then it's going to take you to a lake,

16
01:04.420 --> 01:08.500
and it asks you whether if you want to wait for a boat or swim across.

17
01:08.500 --> 01:11.500
So let's go ahead and wait for a boat.

18
01:11.500 --> 01:18.280
And then the final step is it asks you, which door would you like to go through red, yellow or blue?

19
01:18.310 --> 01:24.880
Now, depending on your choice, you'll either end up with Game Over or you'll end up with winning

20
01:24.880 --> 01:25.480
the game.

21
01:25.480 --> 01:29.800
So the basic setup for this game looks something like this.

22
01:29.800 --> 01:36.760
And I've included a link to the flowchart in the starting project right here.

23
01:37.300 --> 01:41.740
And of course, you'll find all the links in the Course Resources as always.

24
01:41.740 --> 01:47.740
Now, the first question you're going to ask the user is to make a choice between left and right.

25
01:47.770 --> 01:50.590
Now you can use my wording if you want,

26
01:50.590 --> 01:51.520
"You're at a crossroad.

27
01:51.520 --> 01:52.360
Where do you want to go?

28
01:52.360 --> 01:53.920
Type 'left' or type 'right'."

29
01:53.920 --> 01:59.140
But I think the fun part of this challenge is really creating your own story, right?

30
01:59.140 --> 02:02.560
But somehow get them to choose between left and right.

31
02:02.560 --> 02:06.520
If they choose right or any other condition for that matter,

32
02:06.550 --> 02:11.170
tell them that they've lost, 'Game Over' for some sort of reason.

33
02:11.410 --> 02:15.850
In my case, if they had chosen right, the reason is because they fell into a hole,

34
02:15.850 --> 02:16.660
Game Over.

35
02:16.660 --> 02:22.870
But I think you're far more imaginative than I am, so go ahead and use all of those skills and make

36
02:22.870 --> 02:23.920
your game really fun.

37
02:23.950 --> 02:28.750
Now, if they've chosen left, on the other hand, then we're going to take them to another question

38
02:28.750 --> 02:33.330
that asks them whether they want to swim or whether if they want to wait for a boat.

39
02:33.480 --> 02:37.950
And if they swam, then it's going to be some form of Game Over.

40
02:37.950 --> 02:43.050
There's crocodiles, there's...whatever it may be, but they can't continue.

41
02:43.050 --> 02:47.940
But if they chose wait, then we take them to the third and final question, which asks them to choose

42
02:47.940 --> 02:53.850
between three doors and if they choose any door other than the yellow door, then they would lose,

43
02:53.850 --> 02:56.800
but if they chose the yellow door, then they somehow win.

44
02:56.830 --> 03:01.240
Now notice how each of these just says, Game Over, Game Over, left or right,

45
03:01.240 --> 03:06.760
but you know, the idea is really to use your creativity and make this game really your own.

46
03:06.970 --> 03:12.970
Now, one thing to remember, though, is that when the user types in an answer, let's say left or right,

47
03:12.970 --> 03:18.250
they might type it like this with an uppercase R, or they might type it like this,

48
03:18.250 --> 03:19.440
all lowercase.

49
03:19.470 --> 03:20.010
Have a

50
03:20.010 --> 03:24.720
think about how you might make sure that no matter which version they typed, you're still going to

51
03:24.720 --> 03:28.380
be able to catch their command essentially.

52
03:28.380 --> 03:34.200
So have a think about what you've learned in the previous lessons and take a look at this flowchart,

53
03:34.200 --> 03:40.080
then head over to the starting project and you can get started writing your code.

54
03:40.080 --> 03:45.920
Now ASCII art is really cool because it basically just uses a bunch of characters that you know and love,

55
03:45.920 --> 03:53.990
like the comma and the equal sign and all of these things that together make up a picture. And

56
03:53.990 --> 04:01.640
you can find your own ASCII art if you just go to, ascii.co.uk/art, and you'll see a whole bunch of different

57
04:01.640 --> 04:02.510
topics.

58
04:02.600 --> 04:07.220
And they've grouped a lot of things together into individual pages.

59
04:07.220 --> 04:13.790
So if you wanted a Rhino ASCII art, then you can find a whole bunch of rhinos that people have drawn.

60
04:13.940 --> 04:18.740
But the easiest way is, of course, using cmd + F if you're on a Mac, or Ctrl + F if you're on

61
04:18.740 --> 04:22.430
a Windows machine, and then just search for the thing that you want.

62
04:22.430 --> 04:28.820
So, for example, I went and searched for treasure, and down here I found this brilliant Treasure

63
04:28.820 --> 04:35.030
Box in ASCII art, which is what I'm using to print inside this print statement.

64
04:35.030 --> 04:41.600
Now notice how there's three single quotes that are at the start, and there's three single quotes at

65
04:41.600 --> 04:42.350
the end.

66
04:42.350 --> 04:49.250
Basically, what the single quotes allow you to do is to create multiple lines of a string essentially.

67
04:49.250 --> 04:56.770
So notice how if I go ahead and delete all of these single quotes and I only had a set of double

68
04:56.770 --> 05:01.060
quotes then it actually doesn't quite work.

69
05:02.200 --> 05:09.220
It gets quite confused because it thinks that this is where the line ends, but in fact, I wanted

70
05:09.220 --> 05:11.140
it to print all of this out.

71
05:11.140 --> 05:17.950
So to do that, instead of using a double quote, I use three single quotes, and at the very bottom,

72
05:17.950 --> 05:24.010
I tell it well, this is the end of my multi-block string by using three single quotes as well.

73
05:24.010 --> 05:28.090
So have a go at running that, and you should be able to see that in your console,

74
05:28.090 --> 05:34.090
you get this little Treasure Island ASCII art being printed along with the two sentences that begin

75
05:34.090 --> 05:34.810
the game.

76
05:34.900 --> 05:37.420
So have a look at the flowchart,

77
05:37.510 --> 05:44.380
have a play around with the ASCII art, and also have a look at the final version of the app so

78
05:44.380 --> 05:49.540
that you can go ahead and create your own version to complete this challenge.

79
05:49.570 --> 05:51.490
Pause the video now and give that a go.

80
05:55.630 --> 05:56.080
All right.

81
05:56.080 --> 06:02.800
So let's see if we can replicate the functionality or the logic that's shown in this diagram into our

82
06:02.800 --> 06:03.970
Treasure Island game.

83
06:03.970 --> 06:09.660
So the first thing it has to do is we have to ask the user whether, if they want to turn left or right.

84
06:09.840 --> 06:16.050
And after we ask the user this question, we're going to want to capture their input.

85
06:16.050 --> 06:16.410
Right?

86
06:16.410 --> 06:21.840
So let's go ahead and create an input() function and ask our question.

87
06:25.320 --> 06:32.580
Now notice how when I use my double quotes around my string, the double quotes that are inside the

88
06:32.580 --> 06:39.030
double quotes are interpreted as code, because it actually thinks that this is the end of the first

89
06:39.030 --> 06:39.750
string.

90
06:39.840 --> 06:43.050
This is the second string, and this is the final string.

91
06:43.050 --> 06:45.240
This is how the computer is going to see it.

92
06:45.420 --> 06:48.090
Now there's a cool thing that we can do in Python.

93
06:48.090 --> 06:54.900
When we have a string like this, we can enclose a string inside a set of double quotes.

94
06:54.900 --> 06:59.760
And let's say we have a string in here, "Say the words...

95
07:01.980 --> 07:05.670
She said: "hello." "

96
07:07.020 --> 07:15.000
Now, if we want these double quotes to occur and to be viewed as a part of the text, one trick that

97
07:15.000 --> 07:21.510
we can do is instead of using double quotes to enclose our string, we can actually use single quotes

98
07:21.510 --> 07:22.910
around it, instead.

99
07:22.910 --> 07:29.270
And because now we have double quotes inside the single quotes, it will be interpreted as text.

100
07:29.270 --> 07:32.690
And you can see everything inside here is all green.

101
07:32.810 --> 07:40.790
Now, if we try to apply this trick to our input on this line here, there's one slight problem.

102
07:40.790 --> 07:41.690
So let me show you.

103
07:41.690 --> 07:47.280
I'm going to get rid of the final double quote of our string and the first double quote of our string.

104
07:47.280 --> 07:53.010
I'm going to highlight the entire string that I would like to be a part of, the input prompt text,

105
07:53.010 --> 07:58.140
and I'm going to type the single quote button to wrap everything inside.

106
07:58.170 --> 08:06.510
Now we've solved the problem with the double quotes, but we also have a single quote in our sentence.

107
08:06.510 --> 08:12.470
So now what the computer thinks you're trying to do is here's a string, starting single quote, ending

108
08:12.470 --> 08:13.370
single quote.

109
08:13.370 --> 08:19.040
I've written a bunch of other code, and then I've got some other strings left and right.

110
08:19.040 --> 08:22.730
And at the end I've somehow forgotten to close that quote.

111
08:23.360 --> 08:25.310
So how can we fix this?

112
08:25.310 --> 08:34.280
Well, a really, really simple thing is to simply use the backslash button (\), which is used as an escape

113
08:34.280 --> 08:36.530
symbol in programming.

114
08:36.530 --> 08:40.100
So what this says is yes, this is a backslash,

115
08:40.100 --> 08:47.330
but if the backslash occurs in front of any other useful symbol, then it will mean that we're trying

116
08:47.330 --> 08:49.220
to escape this symbol,

117
08:49.220 --> 08:51.620
so don't interpret it as code,

118
08:51.620 --> 08:57.950
and instead, if we run our code, you'll see the input printout in its entirety.

119
08:57.950 --> 09:01.390
'You\'re at a crossroad...'with the apostrophe.

120
09:01.390 --> 09:02.800
'Where do you want to go?

121
09:02.800 --> 09:03.730
Type "left" or "right".'

122
09:03.730 --> 09:07.180
And it's exactly what we wanted to happen.

123
09:07.180 --> 09:10.060
Now, of course, there's other ways that you could have gone around this.

124
09:10.060 --> 09:16.180
You could have just simply said, "You are at..."at a crossroad rather than using the apostrophe.

125
09:16.180 --> 09:19.990
But more often than not, you'll need to use a symbol that you'll need to escape,

126
09:19.990 --> 09:21.610
and you can do that with the backslash.

127
09:21.610 --> 09:23.140
So that's just a quick tip.

128
09:23.320 --> 09:28.240
Now at this point, the user is going to type a message, "left" or "right."

129
09:28.240 --> 09:31.270
So let's go ahead and save that to a variable.

130
09:31.270 --> 09:34.180
Let's call it choice1, equals their input.

131
09:34.180 --> 09:39.310
Now remember how I said they could be typing the answer as Right or as right,

132
09:39.310 --> 09:46.240
so how can we make sure that when we're doing our checks using the if statement we ignore the casing?

133
09:46.360 --> 09:53.260
Well, one way of doing this is we can simply use the lower() function to change their input, no matter

134
09:53.260 --> 10:00.790
how they wrote it: Right, right, or RIGHT, it should all be converted into lower case, to this version.

135
10:00.790 --> 10:06.460
That way we have one thing that we can consistently check for in our if statement, which is coming

136
10:06.460 --> 10:07.060
up next.

137
10:07.060 --> 10:15.180
So we can say if choice1 ==, remember the double equals is checking whether if left-hand

138
10:15.180 --> 10:21.510
side and right-hand side is equal, and the single equal sign is assigning the right-hand side to this

139
10:21.510 --> 10:23.040
particular variable name.

140
10:23.370 --> 10:29.970
Now if choice1 equals the string "right", then it's pretty much game over for our player.

141
10:29.970 --> 10:37.200
So let's go ahead and add our colon and print something like Game Over.

142
10:37.470 --> 10:41.550
Of course, we can elaborate this a little bit more as to why was it game over?

143
10:41.580 --> 10:45.510
Well, because you fell into a hole.

144
10:45.630 --> 10:48.810
This is like the E.T. game from the 80s.

145
10:49.320 --> 10:50.730
Lots of holes.

146
10:51.090 --> 10:53.190
so, "You fell into a hole.

147
10:53.220 --> 10:54.240
Game Over."

148
10:54.810 --> 10:59.100
But what if they had chosen left instead?

149
10:59.130 --> 11:01.830
Well, that takes them on to the next question.

150
11:01.830 --> 11:05.970
So that's the option that will allow them to continue along the game.

151
11:06.870 --> 11:12.900
Now in this case, we could use an else statement and say, well, if they didn't choose right, then

152
11:12.900 --> 11:14.730
they probably chose left, right?

153
11:14.730 --> 11:19.260
But they could have also chosen like an option that was completely not listed.

154
11:19.260 --> 11:24.830
They could have just written something like this, and it would still trigger the else statement.

155
11:24.830 --> 11:29.690
So what we should actually do is to switch it around.

156
11:29.690 --> 11:36.680
So namely, we should say if choice1 is equal to left,

157
11:36.680 --> 11:47.480
well, in that case then they continue in the game, but otherwise, namely, if they chose right or anything

158
11:47.480 --> 11:50.930
else for that matter, then it's pretty much Game Over.

159
11:50.930 --> 11:57.680
So this format makes a lot more sense if you want to continue along the left side of the branch, this

160
11:57.680 --> 11:58.130
way.

161
11:58.430 --> 12:04.580
Now, another thing that you might have realized, because we learned about combining different conditions,

162
12:04.580 --> 12:12.620
is instead of using the .lower() to change the input to lowercase, you could have also said if choice

163
12:12.620 --> 12:20.870
is equal to left, or if choice1 is equal to left spelled like this, that will both work.

164
12:20.990 --> 12:28.010
But I think in terms of succinctness and less code writing, I think this makes a lot more sense

165
12:28.010 --> 12:28.700
to me.

166
12:28.700 --> 12:31.070
So I'm going to continue with this version.

167
12:31.070 --> 12:34.670
But if you did it the other way, that's perfectly valid as well.

168
12:35.420 --> 12:40.270
Now, if their choice1 was left, then they get taken to the next question.

169
12:40.270 --> 12:42.190
"Do you want to swim or do you want to wait?"

170
12:42.910 --> 12:48.370
So let's go ahead and continue the game and create another input.

171
12:48.790 --> 12:55.300
In this input, we're going to ask them a question and say, "You've come to a lake,

172
12:55.330 --> 12:59.800
there is an island in the middle of the lake.

173
12:59.830 --> 13:04.510
Type 'wait' to wait for a boat.

174
13:04.630 --> 13:09.100
Type 'swim' to swim across."

175
13:09.670 --> 13:10.150
Cool.

176
13:10.150 --> 13:13.600
So we've actually got the same problem as we had before.

177
13:13.600 --> 13:21.730
Namely, that this is being interpreted as code rather than as a continuous single string.

178
13:21.850 --> 13:24.580
So do you remember how we fixed this previously?

179
13:24.580 --> 13:30.250
And if you got stuck on this, I recommend having a go at this yourself before I show you the answer.

180
13:31.600 --> 13:32.080
All right.

181
13:32.080 --> 13:38.560
So previously, we said we were going to switch it to single quotes instead so that these double quotes

182
13:38.560 --> 13:41.830
become interpreted as just normal strings.

183
13:41.830 --> 13:43.690
But of course we've got this,

184
13:43.690 --> 13:48.340
"You've", we could, of course, change it to, you have instead of "you've",

185
13:48.340 --> 13:54.670
but if we want to escape the string, we just add a backslash, which is exactly what we did previously.

186
13:55.270 --> 14:01.300
Now, one thing you might notice here is I'm getting a warning here saying PEP 8...

187
14:01.300 --> 14:03.250
So this is a style guidance.

188
14:03.250 --> 14:05.770
This line is too long.

189
14:05.770 --> 14:11.920
And you might have also felt a little bit annoyed having to scroll left and right constantly to be able

190
14:11.920 --> 14:13.900
to see the end of the line.

191
14:13.920 --> 14:16.470
So what can we do in this case?

192
14:16.470 --> 14:24.360
Well, we can actually very easily pick any point in our entirely long string and just hit Enter, and

193
14:24.360 --> 14:30.030
it will automatically do the right thing and make it go on to the next line.

194
14:30.030 --> 14:36.180
Now, this doesn't actually change how it gets printed out, because if I go ahead and stop this and

195
14:36.180 --> 14:41.520
run this code again, you can see it's still typing everything on the same line.

196
14:41.520 --> 14:42.570
"You're at a crossroad.

197
14:42.570 --> 14:43.470
Where do you want to go?

198
14:43.470 --> 14:44.820
Type left or right?"

199
14:44.820 --> 14:47.040
It doesn't actually affect it at all.

200
14:47.040 --> 14:51.120
The only thing it does is it helps our code to be more readable.

201
14:51.120 --> 14:53.460
So we can go ahead and fix this one as well.

202
14:53.460 --> 14:55.890
So wherever you choose, just hit Enter.

203
14:55.890 --> 14:58.710
I did it at the end of a sentence because that makes more sense,

204
14:58.710 --> 14:59.670
but you don't have to.

205
14:59.700 --> 15:03.060
You can actually even put it in the middle of a character if you really wanted to.

206
15:16.800 --> 15:25.230
Now here we're going to see a new warning, and it's basically unhappy with how our indentation looks

207
15:25.230 --> 15:29.360
for this separated second part of the string.

208
15:29.360 --> 15:35.210
So when you hover over some of these PEP 8 warnings, you can actually just click on this button

209
15:35.210 --> 15:37.670
for them to do whatever they think is best.

210
15:37.670 --> 15:43.280
You know, it's like, "All right, you do it, you know, leave me alone and just fix it for me."

211
15:43.280 --> 15:44.990
So they fixed it for us.

212
15:44.990 --> 15:52.430
And as usual with AI and machines it now looks like I have to scroll horizontally again.

213
15:52.430 --> 15:58.760
So let me just fix this so that I put each sentence on a new line so I can see everything in one go

214
15:58.760 --> 16:00.200
without having to scroll around.

215
16:00.200 --> 16:02.990
It's quite good for my sanity.

216
16:02.990 --> 16:07.310
Now, one thing you have to be really careful about is this indentation.

217
16:07.310 --> 16:10.550
Now, this indentation here doesn't really matter at all.

218
16:10.550 --> 16:12.020
It's just all for styling.

219
16:12.020 --> 16:18.620
And the computer was unhappy with having it unaligned with the start of the string.

220
16:18.620 --> 16:21.620
So that's why they asked us to fix it.

221
16:21.620 --> 16:28.850
But the thing that really matters is your code's indentation, because this choice2, getting the input

222
16:28.850 --> 16:36.320
from the user for the second question must be indented inside this if statement, because otherwise

223
16:36.320 --> 16:39.290
it's going to give you an IndentationError.

224
16:39.970 --> 16:47.620
And this means that only when the choice for the first question was left do we actually prompt them

225
16:47.620 --> 16:50.560
for an input and let them continue the story.

226
16:50.560 --> 16:53.530
And then we get to check our choice2.

227
16:53.560 --> 17:02.020
So if choice2 is equal to "wait" then it means that the game will continue,

228
17:03.940 --> 17:05.560
but else,

229
17:05.560 --> 17:11.650
so if they typed "swim" or anything else for that matter, then the game is going to end.

230
17:11.650 --> 17:15.310
So we're going to print and tell them that something terrible happened, 

231
17:15.310 --> 17:20.410
"You got attacked by an angry trout.

232
17:22.180 --> 17:23.230
Game Over."

233
17:23.920 --> 17:26.530
Now we can continue along this path.

234
17:26.530 --> 17:28.480
So we're down to here now.

235
17:28.480 --> 17:33.610
And the final question we're going to ask the user is which door do they want to choose.

236
17:33.970 --> 17:41.200
So here I'm going to use an input to send them the message that, "You arrive at the island unharmed.

237
17:41.200 --> 17:44.170
There is a house with 3 doors. One red, one yellow, one blue.

238
17:44.200 --> 17:46.360
Which color do you choose?"

239
17:46.390 --> 17:55.080
Now I'm going to save their choice inside a variable called choice3, lowercase, the answer that

240
17:55.080 --> 17:56.220
they provided,

241
17:56.220 --> 18:01.560
and finally, I'm going to use if, elif, and else to check which one they chose.

242
18:01.560 --> 18:12.960
So if choice3 is equal to "red", elif choice3 is equal to "yellow",

243
18:15.930 --> 18:20.220
elif choice3 is equal to "blue".

244
18:21.000 --> 18:23.220
And then I've got an else.

245
18:23.310 --> 18:28.170
So here are four possible things that could happen if they chose red,

246
18:28.200 --> 18:34.620
then I'm going to tell them that it's game over, but it's going to be some sort of creative version

247
18:34.620 --> 18:35.460
of Game Over.

248
18:35.460 --> 18:39.360
So maybe something like, "It's a room full of fire.

249
18:39.360 --> 18:40.260
Game over."

250
18:40.500 --> 18:43.930
If they chose yellow, on the other hand,

251
18:44.170 --> 18:47.110
well, that's going to be the room where the treasure exists.

252
18:47.110 --> 18:48.610
So I'm going to print

253
18:48.610 --> 18:48.820
,

254
18:48.820 --> 18:49.750
"You found the treasure.

255
18:49.750 --> 18:50.530
You win!" 

256
18:50.530 --> 18:55.030
If they chose blue, they also end up with Game Over.

257
18:55.030 --> 18:58.390
And I have to give them a different reason.

258
18:58.780 --> 19:05.670
Now, if you had decided that if they chose anything but yellow, the way that they're going to Game

259
19:05.670 --> 19:07.350
Over is the same.

260
19:07.350 --> 19:10.800
Say, if you know, if you chose red, "It's a room full of fire.

261
19:10.800 --> 19:11.340
Game Over."

262
19:11.340 --> 19:13.410
If you chose blue, "It's a room full of fire.

263
19:13.410 --> 19:14.250
Game Over."

264
19:14.250 --> 19:15.300
Anything else,

265
19:15.300 --> 19:16.980
it's also going to be fire,

266
19:16.980 --> 19:17.850
Game Over.

267
19:17.850 --> 19:20.490
Well, then you could just use if and else.

268
19:20.490 --> 19:26.610
But if you wanted each choice or each door to have a different outcome for the user, say the red door

269
19:26.610 --> 19:28.890
has fire, the blue door has beasts,

270
19:28.890 --> 19:35.780
and if they chose the wrong door, then they're going to get something like, "You chose a door that doesn't

271
19:35.780 --> 19:36.290
exist.

272
19:36.320 --> 19:37.280
Game Over."

273
19:37.520 --> 19:44.810
So can you see that depending on whether if you want to give the user a different print statement,

274
19:45.080 --> 19:49.250
based on their choice, then you would use if, elif, else,

275
19:49.250 --> 19:55.100
but if you actually just wanted to give them the same feedback, which is "Game Over", then you could

276
19:55.100 --> 19:56.870
just use if and else.

277
19:57.260 --> 20:01.130
Now let's run our game and just make sure that it works.

278
20:01.130 --> 20:04.580
So I'm going to go left because I know it continues.

279
20:04.580 --> 20:07.940
And then I'm going to wait for the boat.

280
20:07.940 --> 20:11.090
And that allows me to get to the final condition,

281
20:11.090 --> 20:13.760
and if I choose yellow, I know that I'll win.

282
20:13.760 --> 20:19.790
Now if you want to change the formatting, because having the input at the end of the sentence doesn't

283
20:19.790 --> 20:25.940
look as good as letting the user type it on a new line, then you can simply, if you remember, just

284
20:25.940 --> 20:33.440
add the new line which is \n at the end of your inputs, like so.

285
20:33.950 --> 20:37.010
So how did you get on with this challenge?

286
20:37.010 --> 20:42.730
And if you didn't manage to do it right, or if you've done it right, go back and try and modify it.

287
20:42.760 --> 20:48.940
See if you can add some more conditions, or see if you can make the "Game Over" messages a little bit

288
20:48.940 --> 20:50.740
more interesting than what I've written.

289
20:50.740 --> 20:54.070
See if you can modify and make it really your own.

290
20:54.340 --> 20:55.510
Have fun with that.

291
20:55.510 --> 21:01.120
And in the next lesson, I've got more exciting things coming up for you, so hopefully you've scheduled

292
21:01.120 --> 21:05.260
some time for tomorrow to complete the next day's lessons.

293
21:05.260 --> 21:07.390
But for now, it's good night from me.