Hey, guys, welcome to Day 3.
Today you're going to learn all about Conditional Statements,
if / else / elif, Logical Operators, Code Blocks, Scope, Global and Local namespacing and a whole lot more.
And by the end of the day, you will know enough to be able to build this awesome choose-your-own-adventure
game.
So this is what it looks like when it loads,
and our mission is to find the treasure.
So it tells us, "You're at a crossroad.
Where do you want to go?
Left or right?"
Let's say I want to go left.
"You've come to a lake.
There's an island in the middle of the lake.
Type 'wait' to wait for a boat.
Type 'swim' to swim across."
I'm going to wait for a boat.
"You arrive at the island unharmed.
There's a house with 3 doors. One red, one yellow and one blue.
Which color do you choose?"
Let's choose red.
And unfortunately, "It's a room full of fire.
Game over."
So this game lets the user make decisions and depending on what they've chosen, it continues the game
storyline.
If you want to have a go at this game, you can head over to this URL or simply click on the link in
the Course resources and have a play around with the game.
And once you're ready, head over to the next lesson and we're going to start picking up the skills
that's going to be required in order to build this game.
So I'll see you on the next lesson.