Skip to content

Commit

Permalink
Merge branch 'main' into start-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Felienne authored Oct 1, 2023
2 parents d706100 + 63b8449 commit ba7c2fc
Show file tree
Hide file tree
Showing 116 changed files with 2,470 additions and 2,667 deletions.
2 changes: 1 addition & 1 deletion content/achievements/ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ achievements:
text: "Executeu un programa amb èxit després d'un error\n"
did_you_say_please:
title: Has dit si us plau?
text: "Creeu un programa amb l'ordre 'preguntar'.\n"
text: "Creeu un programa amb la comanda 'ask'.\n"
error_or_empty:
title: Error o buit?
text: "Crea un programa que no tingui output\n"
Expand Down
14 changes: 10 additions & 4 deletions content/adventures/ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ adventures:
11:
story_text: |2-
`{print}` لا زال يعمل بالطريقة نفسها، ولكن أضفنا شكلاً جديداً من الأمر `{for}`. بامكاننا الان أن نكتب `{for} دورة {in} {range} ١ {to} ٥` وأن نستخدم بعدها المتغير `دورة` في البرنامج.
`{print}` لا زال يعمل بالطريقة نفسها، ولكن أضفنا شكلاً جديداً من الأمر `{for}`. بامكاننا الان أن نكتب `{for} دورة {in} {range} ١ {to} ٥` وأن نستخدم بعدها المتغير `دورة` في البرنامج.
فلنجرب الان ونرى ما سيحدث! تذكر أن تضع الإزاحة بعد استخدام الأوامر `{for}` و `{if}`(هذا يعني وضع اربع فراغات قبل بداية السطر الذي يكون ضمن هذه الأوامر)
فلنجرب الان ونرى ما سيحدث! تذكر أن تضع الإزاحة بعد استخدام الأوامر `{for}` و `{if}`(هذا يعني وضع اربع فراغات قبل بداية السطر الذي يكون ضمن هذه الأوامر)
start_code: |
{for} دورة {in} {range} ١ {to} ٥
{print} دورة
Expand Down Expand Up @@ -979,8 +979,6 @@ adventures:
start_code: "{print} '5 times 5 is ' 5 * 5"
story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n"
example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n"
story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n"
example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n"
12:
start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5"
story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers."
Expand Down Expand Up @@ -1031,6 +1029,10 @@ adventures:
example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n"
story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n"
example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n"
6:
story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n"
example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n"
start_code: "name = Hedy\nanswer = 20 + 4\n"
sleep_command:
name: "{sleep}"
description: introducing sleep command
Expand All @@ -1057,6 +1059,10 @@ adventures:
start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n"
example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n"
story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n"
9:
start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n"
story_text: "In this level you can also put an {if} command inside another {if} command.\n"
example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n"
in_command:
name: "{in}"
description: Introducing the in command
Expand Down
Loading

0 comments on commit ba7c2fc

Please sign in to comment.