Skip to content

Commit

Permalink
fix: Messages for Level 39 so that students are not encouraged to use…
Browse files Browse the repository at this point in the history
… if (#1129)

* fix: Messages for Level 39 so that students are not encouraged to use if

* Merge branch 'master' into 705-scoring-level-39
  • Loading branch information
sebp999 authored Oct 30, 2020
1 parent 9d06d89 commit 5c95acb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions game/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,19 +1097,18 @@ def title_level39():

def description_level39():
message = ugettext(
"Can you change the 'general algorithm' so that the van takes a shorter "
+ "route? <br> What if you change the order the van checks for "
+ "directions? <br> Keep an eye on the fuel level - try to use as "
+ "little as possible. "
"Can you use the 'general algorithm' here so that the van takes a "
+ "shorter route? Or maybe there's a more efficient way? <br><br>Keep "
+ "an eye on the fuel level - try to use as little as possible."
)
return build_description(title_level39(), message)


def hint_level39():
message = ugettext(
"Make the van check if the road exists right before it checks if the road "
+ "exists left. <br><br> Then it will be able to reach the destination "
+ "using the 'general algorithm'. Can you see why? "
"Uh oh, moving around the blocks in your 'general algorithm' might not "
+ "be the most efficient solution. How about creating a simple solution "
+ "without 'if statements' that will help the van reach the house? "
)
return message

Expand Down

0 comments on commit 5c95acb

Please sign in to comment.