Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: I added the Youtube link for Level 7 #1762

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions game/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,31 @@ def title_level7():


def description_level7():
message = (
message = youtube_link(
"https://www.youtube.com/embed/Lw-MMIlGU1Y?si=afJ-mzDFsUTizE1Q", 0
)

message += (
"<div class='popup_message'>"
f"This video introduces variable-type blocks in Blockly. "
f"These blocks let you store numbers and use them in your code to make it more efficient. "
f"Practise your new skills on this road by helping the driver to arrive at "
f"the house. <br> When you are happy with your sequence, press "
f"{play_button_icon_url()}!"
"</div>"
)

return build_description(
title_level7(), f"<div class='main_popup_container'>{message}</div>"
)
return build_description(title_level7(), message)


def hint_level7():
message = youtube_link(
"https://www.youtube.com/embed/Lw-MMIlGU1Y?si=afJ-mzDFsUTizE1Q", 0
)
return (
f"{message}<br>"
"This road is more complicated but you can do this! Start with just a few "
"blocks and try that, then add more blocks and check it again."
)
Expand Down
Loading