Skip to content

Commit

Permalink
Merge branch 'main' into hedy_choice_test
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Sep 9, 2023
2 parents 1d1af68 + 74f4a86 commit ff33f1f
Show file tree
Hide file tree
Showing 18 changed files with 1,394 additions and 1,366 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://github.com/pre-commit/mirrors-autopep8
- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
hooks:
- id: autopep8
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The latest version of Hedy can be found at [hedy.org](https://hedy.org).
What's next?
------------

If you want to see what the core team will work on next, you can follow [our Project](https://github.com/hedyorg/hedy/projects/5), the [Discussions](https://github.com/hedyorg/hedy/discussions) or join our [Discord](https://discord.gg/8yY7dEme9r) channel.
If you want to see what the core team will work on next, you can follow [our Project Board](https://github.com/orgs/hedyorg/projects/1/views/5), the [Discussions](https://github.com/hedyorg/hedy/discussions) or join our [Discord](https://discord.gg/8yY7dEme9r) channel.

Živjo Hedy! Привет Hedy! !Hedy سلام
----------------------------------------------
Expand Down Expand Up @@ -55,4 +55,4 @@ Want to help improve Hedy?

We would love to have a few more programmers join the Hedy team as regular contributors! See how you can get started with contributing in our docs: [CONTRIBUTING.md](docs/CONTRIBUTING.md).

You can follow the [Discussions](https://github.com/hedyorg/hedy/discussions) to stay up to date on things we are working on and considering. Full documentation including our design and design principles can be found [DESIGN.md](docs/DESIGN.md)
You can follow the [Project Board](https://github.com/orgs/hedyorg/projects/1/views/5) to see what we are currently working on, and [Discussions](https://github.com/hedyorg/hedy/discussions) to stay up to date on things we are considering. Full documentation including our design and design principles can be found [DESIGN.md](docs/DESIGN.md).
Binary file modified all_snippet_hashes.pkl
Binary file not shown.
5 changes: 3 additions & 2 deletions content/adventures/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -944,10 +944,11 @@ adventures:
story_text: "Con `{for}` puedes simplificar programas de practica de las tablas de multiplicación.\n\n### Ejercicio 1\nMejora el codigo de ejemplo para que\n\n### Exercise 2\nGo back to your level 10 multiplication code, and modify it so that it uses a `{for}` and `{range}`.\n"
start_code: '# pon tu codigo aquí'
13:
story_text: |
story_text: |2
### Ejercicio 1
Hagamos el programa de practica un poco mas difícil. El jugador tiene que responder dos preguntas correctamente. Llena los espacios en blanco para completar el programa.
### Ejercicio 2 Extra
A veces las calculadoras tienen múltiples respuestas correctas. Por ejemplo, 10 se puede dividir por 5 y 2. Entonces la pregunta '¿Qué numero divide el 10?' se puede responder con 2 y con 5.
Pide un cálculo que tenga múltiples respuestas correctas, pídele al jugador que lo responda y determine si es correcto usando`{or}`.
Expand Down
28 changes: 14 additions & 14 deletions content/adventures/kmr.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
adventures:
default:
name: Introduction
name: Pêşkêş
levels:
4:
start_code: "{print} 'Hello world'"
start_code: "{print} 'Silav dinya'"
story_text: "In level 4 `{ask}` and `{print}` have changed.\nYou must put text that you want to print between quotation marks.\nThis is useful, because now you can print all the words you want. Also the words you used to store something with `{is}`.\nMost programming languages also use quotation marks when printing, so we are also getting a step closer to real programming!\n"
example_code: "```\n{print} 'You need to use quotation marks from now on!'\nanswer {is} {ask} 'What do we need to use from now on?'\n{print} 'We need to use ' answer\n```\n"
example_code: "```\n{print} 'Pêwîste ku hûn ji nuha û pê ve nîşanan bikar bînin!'\nbersiv {is} {ask} 'Ji niha û pê ve divê em çi bikar bînin?'\n{print} 'Divê em navê Sophie bikar bînin'\n{print} 'Navê min navê min'\n"
5:
start_code: "name {is} {ask} 'what is your name?'\n{if} name {is} Hedy {print} 'cool!' {else} {print} 'meh'"
start_code: "nav {is} {ask} 'navê te çi ye?'\n{if} nav {is} Hedy {print} 'xweş!' {else} {print} 'meh'"
story_text: "In level 5 there is something new, the `{if}`! With the `{if}` you can choose between two different options.\nThis code prints nice if you enter Hedy as a name, and boo! if you enter something else.\n`{ask}` and `{print}` still work like they did in level 4.\n"
example_code: "```\nname {is} {ask} 'what is your name?'\n{if} name {is} Hedy {print} 'nice' {else} {print} 'boo!'\n```\n"
example_code: "```\nnav {is} {ask} 'Navê te çi ye?'\n{if} nav {is} Hedy {print} 'xweşik' {else} {print} 'boo!'\n```\n"
18:
start_code: "name = 'Hedy'\n{print}('My name is ', name)"
story_text: "We arrived at real Python code! That means we need to use parentheses with {print} and {range} from now on.\nIt also means you can use Hedy code from this level in any Python environment as long as you use the English commands. If you haven't until now, you can switch the toggle in the commands menu to do so."
1:
story_text: "Bi xêr hatî Hedy! Di Asta 1 de hûn dikarin fermanên `{print}`, `{ask}` û `{echo}` bikar bînin.\nKoda xwe di qada bernamekirinê de binivîsin. An jî bişkoka kesk a di bloka kodê ya nimûneyê de bikirtînin, û kod dê ji we re were nivîsandin! Bi çapkirina çîrokek dest pê bikin.\n\nBi bişkoja kesk 'Run code' di binê qada bernamekirinê de kodê biceribînin.\n\nHûn dikarin nivîsê li ser ekranê bi karanîna `{print}` çap bikin Amade ne? Ew cax biçin tabloya din da ku emrê xweya yekem fêr bibin . !\n"
start_code: '{print} hello world!'
start_code: '{print} silav dinya!'
2:
story_text: "In level 2 we learn two new commands: `{is}` and `{sleep}`.\nYou can name a word with `{is}`. This is called a variable. In this example we made a variable called name and a variable called age. You can use the word name anywhere in your code and it will be replaced by Hedy, like this:\n\nThis way you no longer need the `{echo}` command!\n"
example_code: "```\nname {is} Hedy\nage {is} 15\n{print} name is age years old\n```\n"
example_code: "{print} Hûn bi xêr hatin Hedy's\n{ask} Tu dixwazî çi bixwî?\n{echo} Ji ber vê yekê hûn dixwazin\n{ask} dixwazin çi vexwin?\n{echo} Ji ber vê yekê hûn dixwazin\n"
story_text_2: "`{print}` still works the same, but the `{ask}` command has changed. You need to use a variable in the `{ask}` command as well. It looks like this:\n"
start_code: '{print} hello world!'
start_code: '{print} silav dinya!'
3:
story_text: "In level 3 you can make a list. You can let the computer choose something random from the list. You do that with `{at} {random}`.\n"
start_code: '{print} hello world!'
start_code: '{print} silav dinya!'
6:
start_code: "{print} '5 times 5 is ' 5 * 5"
start_code: "{print} '5 caran 5 ' 5 * 5"
story_text: " In this level you learn something new: you can now also calculate.\n\n The plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\n The times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\n That 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"
example_code: "```\n{print} '5 biserve 5 {is} ' 5 + 5\n{print} '5 kêmkir 5 {is} ' 5 - 5\n{print} '5 caran 5 {is} ' 5 * 5\n```\n"
7:
start_code: "{repeat} 3 {times} {print} 'Hedy is fun!'"
story_text: "Level 7 adds the `{repeat}` command. `{repeat}` can be used to execute one line of code multiple times.\n"
example_code: "```\n{repeat} 3 {times} {print} 'Hedy is fun!'\n```\n"
start_code: "{repeat} 3 {times} {print} 'Hedy xweş e!'\n"
story_text: "Asta 7 fermana `{repeat}` zêde dike. `{repeat}` dikare ji bo pêkanîna yekê were bikar anîn\n"
example_code: "{repeat} 3 {times} {print} 'Hedy kêfxweş e! {print} 'rojbûna te pîroz be'\n{repeat} 3 {times} {print} 'Hedy kêfxweş e!print!'\n```\n"
8:
start_code: "{repeat} 5 {times}\n {print} 'Hello folks'\n {print} 'This will be printed 5 times'"
story_text: "`{ask}` and `{print}` still work as you know them. But `{if}`, `{else}`, {pressed} and `{repeat}` have changed!\nYou can now group several lines together, but you will have to *indent* the code.\nThat means putting four spaces at the beginning of the line. You will also have to indent when you just want to create a block of one line.\n"
Expand Down
28 changes: 12 additions & 16 deletions content/adventures/nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ adventures:
story_text: |
Welkom bij Hedy! In Level 1 ga je je eerste codes leren maken.
Als je een code het getypt in het invoerscherm kun je op de knop 'Voer de code uit' klikken. Je programma wordt dan uitgevoerd in het uitvoerscherm.
Als je een code hebt getypt in het invoerscherm kun je op de knop 'Voer de code uit' klikken. Je programma wordt dan uitgevoerd in het uitvoerscherm.
Klaar om te leren programmeren? Ga dan snel naar het eerste avontuur in het volgende tabje!
start_code: "{print} hallo wereld!"
Expand Down Expand Up @@ -1897,7 +1897,7 @@ adventures:
{print} Vandaag serveren we pizza of lasagne.
eten {is} {ask} Wat wilt u eten?
{print} Heerlijk! eten is ook mijn favoriet!
topping {is} {ask} Wilt u eten met groente of vlees?
topping {is} {ask} Met groente of vlees?
{print} eten met topping komt eraan!
```
start_code: "# Schrijf jouw code hier"
Expand Down Expand Up @@ -2216,7 +2216,7 @@ adventures:
{print} Je stapt het oude verlaten spookhuis binnen
{print} Meteen hoor je het geluid van een monster1
{print} Dus snel ren je naar de volgende kamer.
{print} Maar daar wordt je opgewacht door een monster2
{print} Maar daar word je opgewacht door een monster2
{print} HELP!
{print} Je rent naar de keuken, maar wordt daar aangevallen door een monster3
```
Expand All @@ -2233,15 +2233,15 @@ adventures:
{print} Je stapt het oude verlaten spookhuis binnen
{print} Meteen hoor je het geluid van een monster1
{print} Dus snel ren je naar de volgende kamer.
{print} Maar daar wordt je opgewacht door een monster2
{print} Maar daar word je opgewacht door een monster2
{print} HELP!
{print} Je rent naar de keuken, maar wordt daar aangevallen door een monster3
```
3:
story_text: |
In het vorige level heb je een spannende intro bedacht voor je spookhuis, maar een echt spel is het nog niet: Het loopt namelijk altijd hetzelfde af.
In level twee kun je je verhaal interactiever maken door verschillende eindes te bedenken: soms wordt je opgepeuzeld door een verschrikkelijk monster en soms ontsnap je!
In level twee kun je je verhaal interactiever maken door verschillende eindes te bedenken: soms word je opgepeuzeld door een verschrikkelijk monster en soms ontsnap je!
Hedy kiest willekeurig of je overleeft of niet...
start_code: "{print} Ontsnap uit het spookhuis!"
example_code: "```\n_ Escape from the haunted house!\n_ There are 3 doors in front of you...\n_ _ _ Which door do you choose?\n_ You picked door ... choice\nmonsters _ a zombie, a vampire, NOTHING YOUVE ESCAPED\n_ You see...\n{sleep}\n_ _ _ _\n```\n"
Expand Down Expand Up @@ -2882,18 +2882,18 @@ adventures:
levels:
2:
story_text: "Nu je `{ask} hebt geleerd te gebruiken, kun je de steen, papier, schaar code ook interactief maken!\n\n### Opdracht\nMaak de steen, papier, schaarcode interactief door met `{ask}` commando.\n"
example_code: "```\nckeuze is _\n{print} Ik kies keuze\n```\n"
example_code: "```\nkeuze is _\n{print} Ik kies keuze\n```\n"
start_code: "# place your code here"
is_command:
name: "{is}"
description: introducing is command
default_save_name: is_command
levels:
2:
story_text: "## Variabelen\nJe kunt een waarde in een woord opslaan met het commando `{is}`. Dit noemen we een **variabele**. In dit voorbeeld hebben we een variabele gemaakt die 'naam' heet en een variabele 'leeftijd'. Je kunt een variabele overal in de zin plaatsen waar je wil en Hedy verplaatst de variabele dan met de waarde. Kijk maar:\n"
story_text: "## Variabelen\nJe kunt een waarde in een woord opslaan met het commando `{is}`. Dit noemen we een **variabele**. In dit voorbeeld hebben we een variabele gemaakt die 'naam' heet en een variabele 'leeftijd'. Je kunt een variabele overal in de zin plaatsen waar je wil en Hedy vervangt de variabele dan voor de waarde. Kijk maar:\n"
example_code: "```\nnaam {is} Hedy\nleeftijd {is} 15\n{print} naam is leeftijd jaar oud\n```\n"
story_text_2: "### Opdracht\nTijd om je eigen variabelen te maken!\nIn het voorbeeld hebben we de variabele 'lievelingsdier' gemaakt. In regel 1 wordt de variabele 'ingesteld', en in regel 2 gebruiken we de variabele met een `{print}`.\nMaak eerst ons voorbeeld af door jouw lievelingsdier in te vullen op de plek van het streepje. Bedenk daarna zelf minstens 3 van zulk soort codes. Kies daarbij een variabele en stel hem in met het `{is}` commando. Gebruik daarna de variabele in een zin met een `{print}` commando, zoals wij in het voorbeeld hebben gedaan.\n"
example_code_2: "```\nlievelingsdier is _\n{print} Ik hou van favorite_animals\n```\n"
example_code_2: "```\nlievelingsdier is _\n{print} Ik hou van lievelingsdier\n```\n"
start_code: "naam {is} Hedy\nleeftijd {is} 15\n{print} naam is leeftijd jaar oud."
14:
start_code: |-
Expand Down Expand Up @@ -2946,16 +2946,12 @@ adventures:
dieren {is} hond, kat, kangoeroe
{print} dieren {at} {random}
```
story_text_2: |-
Je kunt in dit level ook dingen aan een lijstje toevoegen met het commando `{add}`. Daarnaast kun je dingen van het lijstje verwijderen. Dat doe je met `{remove}`.
story_text_2: |
Je kunt {at} {random} ook in een zin gebruiken.
example_code_2: |
```
taarten {is} aardbei, chocolade
{add} appel {to_list} taarten
{remove} chocolade {from} taarten
{print} taarten {at} {random}
eten {is} broodje, pizza, salade, burrito
{print} Ik ga een eten {at} {random} lunchen.
```
start_code: "dieren {is} hond, kat, kangoeroe\n{print} dieren {at} {random}\n"
story_text_3: "### Opdracht\nProbeer het `{at} {random}` commando uit door je eigen gameshow te maken (zoals Miljoenenjacht op tv). De kandidaat kiest een koffer of een deur waarachter een grote prijs verstopt kan zitten!\nLukt het jou om zo'n programma te maken? De eerste regels zijn alvast te vinden in het voorbeeld\n"
Expand Down
Loading

0 comments on commit ff33f1f

Please sign in to comment.