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: level 36 message #1525

Merged
merged 1 commit into from
Nov 17, 2023
Merged
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
30 changes: 20 additions & 10 deletions game/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,15 +862,22 @@ def description_level36():
message = youtube_link("https://www.youtube-nocookie.com/embed/GUUJSRuAyU0", 0)
message += (
"<div class='popup_message'>"
"You can change the <b>If</b> block to make more choices. Click on the "
"star in the <b>If</b> block and add <b>Else if</b>. <br> This will tell "
"the van what to do if the first <b>If</b> direction can't be done. "
"<br> For example, tell the van to <b>Turn left</b> <b>If</b> the "
"<b>road exists left</b>. Add <b>Else if</b> the <b>road exists right"
"</b>, <b>Turn right</b>. <br> This uses fewer blocks and makes sure "
"that only one step is taken in each loop. <br> This type of "
"algorithm is called a 'general algorithm' as it can be used with most "
"simple routes."
"You can change the <b>if</b> block to make more choices. Click on the"
" cog in the <b>if</b> block and add <b>else if</b>."
"<br>"
"This will tell the van what to do if the first <b>if</b> direction"
" can't be done."
"<br>"
"You can also add an <b>else</b> block to tell the van what to do if"
" none of the conditions match."
"<br>"
"For example:"
"<br>"
"<b>If</b> there is a road ahead, go forwards."
"<br>"
"<b>Else if</b> there is a road left, turn left."
"<br>"
"<b>Else</b>, go right."
"</div>"
)
return build_description(
Expand Down Expand Up @@ -2431,7 +2438,10 @@ def hint_level109():
hint_level115,
) = (
lambda: "Which way to turn? This way or that way?",
lambda: build_description(title_level115(), "Try to find the shortest route using Python code only. You are getting really good at this!"),
lambda: build_description(
title_level115(),
"Try to find the shortest route using Python code only. You are getting really good at this!",
),
lambda: "If you are stuck on this one, check that you are using the Python commands accurately. Click the Py Commands button to help you.",
)

Expand Down