WEBVTT

0
00:00.080 --> 00:02.600
Hey, guys, welcome to Day 3.

1
00:02.630 --> 00:05.840
Today you're going to learn all about Conditional Statements,

2
00:05.840 --> 00:14.720
if / else / elif, Logical Operators, Code Blocks, Scope, Global and Local namespacing and a whole lot more.

3
00:14.810 --> 00:21.500
And by the end of the day, you will know enough to be able to build this awesome choose-your-own-adventure

4
00:21.500 --> 00:22.130
game.

5
00:22.160 --> 00:25.400
So this is what it looks like when it loads,

6
00:25.400 --> 00:28.790
and our mission is to find the treasure.

7
00:28.790 --> 00:30.840
So it tells us, "You're at a crossroad.

8
00:30.840 --> 00:31.770
Where do you want to go?

9
00:31.770 --> 00:32.700
Left or right?"

10
00:32.700 --> 00:34.620
Let's say I want to go left.

11
00:34.740 --> 00:35.880
"You've come to a lake.

12
00:35.880 --> 00:37.530
There's an island in the middle of the lake.

13
00:37.560 --> 00:39.540
Type 'wait' to wait for a boat.

14
00:39.540 --> 00:40.890
Type 'swim' to swim across."

15
00:40.890 --> 00:43.110
I'm going to wait for a boat.

16
00:43.650 --> 00:45.570
"You arrive at the island unharmed.

17
00:45.570 --> 00:49.170
There's a house with 3 doors. One red, one yellow and one blue.

18
00:49.170 --> 00:50.610
Which color do you choose?"

19
00:50.610 --> 00:52.410
Let's choose red.

20
00:52.800 --> 00:55.590
And unfortunately, "It's a room full of fire.

21
00:55.600 --> 00:56.740
Game over."

22
00:56.800 --> 01:02.770
So this game lets the user make decisions and depending on what they've chosen, it continues the game

23
01:02.770 --> 01:03.730
storyline.

24
01:03.820 --> 01:09.730
If you want to have a go at this game, you can head over to this URL or simply click on the link in

25
01:09.730 --> 01:12.880
the Course resources and have a play around with the game.

26
01:12.880 --> 01:17.200
And once you're ready, head over to the next lesson and we're going to start picking up the skills

27
01:17.200 --> 01:20.050
that's going to be required in order to build this game.

28
01:20.110 --> 01:22.390
So I'll see you on the next lesson.