Skip to content

Commit

Permalink
Improved the existing puzzels
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleenGilsing committed Aug 31, 2023
1 parent 1ba3e87 commit fb68393
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 66 deletions.
57 changes: 35 additions & 22 deletions content/parsons/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ levels:
1:
1:
story: |
Puzzels are exercises in which the lines of code are already written for you. You only have to place the lines in the correct order. Drag the lines of code into the input screen and run the code. Can you get the program to work?
You're a customer at bakery Hedy.
You walk into the bakery and are welcomed by the baker.
He asks what type of pie you want to order.
Next, your order is being prepared.
Then he repeats your answer back to you.
Lastly, your order is being prepared.
code: |-
{print} Welcome to bakery Hedy!
{ask} What type of pie do you want to order?
Expand All @@ -18,7 +21,7 @@ levels:
{print} This is DJ Hedy
{ask} Are you ready to party?
{ask} What song would you like to hear?
{echo} Great choice! I love
{echo} Great choice! I love the song
2:
1:
story: |
Expand All @@ -35,22 +38,21 @@ levels:
code: |-
{print} Welcome to our toystore
toy {is} {ask} What would you like to buy?
{print} The toy is added to your shopping cart.
{print} toy is added to your shopping cart.
{print} Thank you for shopping with us!
3:
1:
story: |
The new school year at Hogwarts is starting!
It is the job of the sorting hat to sort you into one of the houses.
Which house will you be sorted into?
Are you a Gryffindor, Hufflepuf, Ravenclaw or Slytherin.
Let the program wait a short period before revealing your house.
Which house will you be sorted into? Are you a Gryffindor, Hufflepuff, Ravenclaw or Slytherin.
Before the sorting hat reveals your house, you can tell it to not pick one of the houses.
code: |-
{print} The new school year at Hogwarts is starting!
{print} The sorting hat is ready to sort you into a Hogwarts house.
houses {is} Gryffindor, Hufflepuf, Ravenclaw, Slytherin
{sleep} 2
{print} And it is houses {at} {random}
dislike {is} {ask} Are there any houses you do not want to be part of?
{remove} dislike {from} houses
{print} Not dislike eh? Better be... houses {at} {random}
2:
story: |
Create a program that chooses a random meal for you. Make a list of food and a list of toppings and let the program decide what you'll have!
Expand All @@ -60,6 +62,20 @@ levels:
{print} Your random meal for today is...
{sleep} 2
{print} food {at} {random} with toppings {at} {random}
3:
story: |
In a chess tournament there are three players left.
Create a program that decides which two players have to play against each other first.
Start by printing the two players who play the first match, then print against which player the winner will play.
code: |-
players = Liam, Noah, Sophie
player_1 = players {at} {random}
{remove} player_1 {from} players
player_2 = players {at} {random}
{print} player_1 ' first plays against ' player_2
{remove} player_2 {from} players
{print} 'The winner plays against ' players {at} {random}
4:
1:
story: |
Expand Down Expand Up @@ -117,30 +133,27 @@ levels:
code: |-
{print} 'It is your birthday!'
people = {ask} 'How many people do you want to give a slice of cake?'
cakes_amount {is} people/8
cakes_amount = people/8
{print} 'You will have to buy ' cakes_amount ' cakes'
7:
1:
story: |
In a chess tournament there are three players left.
Create a program that decides which two players first play against each other.
First print the two players who play the first match, then print against which player the winner will play.
code: |-
players = Liam, Noah, Sophie
player1 = players {at} {random}
{remove} player1 {from} players
player2 = players {at} {random}
{print} player1 ' first plays against ' player2
{remove} player2 {from} players
{print} 'The winner plays against ' players {at} {random}
Complete the baby shark song. First comes baby shark, then mommy and finally daddy shark.
code: |
{repeat} 3 {times} {print} 'Baby shark tututututudu'
{print} 'Baby shark'
{repeat} 3 {times} {print} 'Mommy shark tututututudu'
{print} 'Mommy shark'
{repeat} 3 {times} {print} 'Daddy shark tututututudu'
{print} 'Daddy shark'
2:
story: |
Create the song 'The wheels on the bus go round and round'
code: |-
{print} 'the wheels on the bus go'
{repeat} 3 {times} {print} 'round and round'
{print} 'the wheels of the bus go round and round'
{print} 'all through the town '
{print} 'all through the town'
8:
1:
story: |
Expand Down
105 changes: 61 additions & 44 deletions content/parsons/nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ levels:
1:
1:
story: |
In de sleeppuzzels zijn de regels code al voor je geschreven. Je hoeft ze alleen nog maar in de juiste volgorde te plaatsen! Sleep de regels code in je invoerscherm en voer de code uit. Kun jij het programma aan de praat krijgen?
Je bent een klant bij bakkerij Hedy.
Je loopt de bakkerij binnen en wordt verwelkomd door de bakker.
Hij vraagt wat voor taart je wil bestellen.
Hij vraagt wat voor taart je wil bestellen en herhaalt het antwoord.
Daarna wordt je bestelling klaargezet.
code: |
{print} Welkom bij bakkerij Hedy!
Expand All @@ -17,7 +20,7 @@ levels:
{print} Hier is DJ Hedy
{ask} Klaar voor een feestje?
{ask} Welke liedje wil je horen?
{echo} Prima keuze! I houd van
{echo} Prima keuze! I houd van het lied
2:
1:
story: |
Expand All @@ -33,7 +36,7 @@ levels:
code: |-
{print} Welkom in onze speelgoedwinkel
speelgoed {is} {ask} Wat wilt u kopen?
{print} Het speelgoed is toegevoegd aan uw winkelwagen.
{print} speelgoed is toegevoegd aan uw winkelwagen.
{print} Bedankt voor het winkelen bij ons!
3:
1:
Expand All @@ -42,13 +45,13 @@ levels:
Het is de taak van de sorteerhoed om jou in te delen in een van de afdelingen.
Bij welke afdeling zou jij willen?
Ben jij een Griffoendor, Huffelpuf, Zwadderich of Ravenklauw.
Laat het programma even wachten voordat het onthult bij welke afdeling jij mag.
Voordat de sorteerhoed zijn keuze bekend maakt, kun je aangeven bij welk huis je niet terecht wil komen.
code: |-
{print} Het nieuwe schooljaar op Zweinstein gaat van start!
{print} De sorteerhoed is er klaar voor om jou in te delen op Zweinstein.
afdeling {is} Griffoendor, Huffelpuf, Zwadderich, Ravenklauw
{sleep} 2
{print} Het wordt afdeling {at} {random}
afdelingen {is} Griffoendor, Huffelpuf, Zwadderich, Ravenklauw
liever_niet {is} {ask} Bij welke afdeling zou je liever niet willen?
{remove} liever_niet {from} afdelingen
{print} Niet bij liever_niet he? Dan wordt het maar... afdelingen {at} {random}
2:
story: "Maak een programma dat een willekeurige maaltijd voor je kiest. Maak een lijst met eten en een lijst met toppings en laat het programma beslissen wat je krijgt!\n"
code: |-
Expand All @@ -57,6 +60,19 @@ levels:
{print} Je willekeurige maaltijd voor vandaag is...
{sleep} 2
{print} eten {at} {random} met topping {at} {random}
3:
story: |
In een schaaktoernooi zijn nog drie spelers over.
Maak een programma dat beslist welke twee spelers als eerst tegen elkaar mogen schaken.
Print eerst de twee spelers die tegen elkaar spelen en print vervolgens de tegen wie de winnaar mag spelen.
code: |
spelers = Freek, Bart, Emma
speler1 = spelers {at} {random}
{remove} speler1 {from} spelers
speler2 = spelers {at} {random}
{print} speler1 ' speelt eerst tegen ' speler2
{remove} speler2 {from} spelers
{print} 'De winnaar speelt tegen ' spelers {at} {random}
4:
1:
story: |
Expand All @@ -69,36 +85,39 @@ levels:
{sleep}
{print} pokemons {at} {random}
2:
story: Create a lottery that lets you choose an extra price that you might win.
story: |
Maak een loterij waarbij je zelf een prijs mag bedenken.
Begin met het lijstje prijzen op regel 1.
code: |
prices {is} car, hamster, million euros
price {is} {ask} 'What would you like to win?'
{add} price {to_list} prices
{print} 'You won a ' prices {at} {random}
prijzen {is} auto, hamster, miljoen euro
prijs {is} {ask} 'Wat zou je willen winnen?'
{add} prijs {to_list} prijzen
{print} 'Je wint een ' prijzen {at} {random}
5:
1:
story: |
Maak een programma dat kijkt of jouw lievelingsfilm al in het lijstje van de computer staat opgeslagen.
Zo ja dan print je dat je een goede smaak hebt, zo nee dan voegen we hem graag toe aan de lijst.
code: |
favoriete_film {is} Batman, Spiderman, The Avengers, Jurassic Park
favoriete_films {is} Batman, Spiderman, The Avengers, Jurassic Park
film {is} {ask} 'Wat is jouw lievelingsfilm?'
{if} film {in} favoriete_film {print} 'Jij hebt een goede smaak!'
{if} film {in} favoriete_films {print} 'Jij hebt een goede smaak!'
{else} {print} 'Wat jammer dat jouw favoriete film niet in het lijstje staat, we voegen hem toe aan de lijst!'
{add} film {to_list} favoriete_film
{add} film {to_list} favoriete_films
2:
story: Create a maths game.
story: |
Maak dit rekenspelletje.
code: |
{print} 'Solve this problem'
answer {is} {ask} '88 - 16 = ?'
{if} answer {is} 72 {print} 'Correct!'
{else} print 'Wrong! The answer was 72'
{print} 'Los deze som op'
antwoord {is} {ask} '88 - 16 = ?'
{if} antwoord {is} 72 {print} 'Correct!'
{else} {print} 'Fout! Het was 72'
6:
1:
story: |
Maak een programma dat voor jou berekent hoe oud jij bent in hondenjaren en in kattenjaren.
Vraag eerst de leeftijd van de gebruiker en rekenen maar.
Bereken eerst de hondenjaren en dan de kattenjaren.
**Bereken eerst de hondenjaren en dan de kattenjaren.**
Laat de gebruiker de nieuwe leeftijden zien!
code: |
leeftijd = {ask} 'Hoe oud ben je?'
Expand All @@ -107,33 +126,31 @@ levels:
{print} 'In hondenjaren ben jij ' hond_leeftijd ' jaar oud.'
{print} 'In kattenjaren ben jij ' kat_leeftijd ' jaar oud.'
2:
story: Create a program that helps you calculate how many cakes you should buy for your birthday party.
story: |
Maak een programma dat je helpt berekenen hoeveel taarten je moet kopen voor iemands verjaardag.
code: |
{print} 'It is your birthday!'
people = {ask} 'How many people do you want to give a slice of cake?'
cakes_amount is people/8
cakes_amount = people/8
{print} 'You will have to buy ' cakes_amount ' cakes'
7:
1:
story: |
In een schaaktoernooi zijn nog drie spelers over.
Maak een programma dat beslist welke twee spelers als eerst tegen elkaar mogen schaken.
Print eerst de twee spelers die tegen elkaar spelen en print vervolgens de tegen wie de winnaar mag spelen.
Maak het baby shark liedje compleet. Eerst komt baby, dan mama tot slot papa haai.
code: |
spelers = Freek, Bart, Emma
speler1 = spelers {at} {random}
{remove} speler1 {from} spelers
speler2 = spelers {at} {random}
{print} speler1 ' speelt eerst tegen ' speler2
{remove} speler2 {from} spelers
{print} 'De winnaar speelt tegen ' spelers {at} {random}
{repeat} 3 {times} {print} 'Baby shark tututututudu'
{print} 'Baby shark'
{repeat} 3 {times} {print} 'Mommy shark tututututudu'
{print} 'Mommy shark'
{repeat} 3 {times} {print} 'Daddy shark tututututudu'
{print} 'Daddy shark'
2:
story: Create the song 'The wheels on the bus go round and round'
story: Maak het liedje 'de wielen van de bus'
code: |
{print} 'the wheels on the bus go'
{repeat} 3 {times} {print} 'round and round'
{print} 'the wheels of the bus go round and round'
{print} 'all through the town '
{print} 'De wielen van de bus gaan'
{repeat} 3 {times} {print} 'rond en rond'
{print} 'De wielen van de bus gaan rond en rond'
{print} 'als de bus gaat rijden'
8:
1:
story: |
Expand All @@ -148,11 +165,11 @@ levels:
{sleep} 2
2:
story: |
Print the countdown for a game of hide and seek.
Laat de computer aftellen voor een potje verstoppertje
code: |
counter = 11
teller = 11
{repeat} 10 {times}
counter = counter - 1
{print} counter
teller = teller - 1
{print} teller
{sleep} 1
{print} 'Ready or not here I come!'
{print} 'Wie niet weg is, is gezien! Ik kom!'

0 comments on commit fb68393

Please sign in to comment.