forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpa_PK.yaml
132 lines (132 loc) · 6.98 KB
/
pa_PK.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
levels:
1:
1:
code: |
{print} Your order is being prepared!
{print} Welcome to bakery Hedy!
{ask} What type of pie do you want to order?
{echo} So you want
story: You're a customer at bakery Hedy.\nYou want into the bakery and are welcomed by the baker.\nHe asks what type of pie you want to order.\nNext, your order is being prepared.\n
2:
story: You're at the DJ Booth requesting a song. Create a program that asks if you are ready to party and then asks which song you would like to hear.\n
code: |
{print} This is DJ Hedy
{ask} Are you ready to party?
{ask} What song would you like to hear?
{echo} Great choice! I love
2:
2:
code: |
{print} Thank you for shopping with us!
{print} Welcome to our toystore
toy {is} {ask} What would you like to buy
{print} The toy is added to your shopping cart.
story: This is the webshop of a toy store. Create a program where costumers can add an item to their shopping cart.\n
1:
code: |
film {is} Sonic the Hedgehog 2
{print} It is time for an evening of Netflix
{print} We're going to film
{print} Have fun!
story: You and your friends are going to watch some Netflix.\nShow which movie you're about to watch and wish the viewers lot of fun!\n
5:
2:
code: |
{print} 'Solve this problem'
answer {is} {ask} '88 - 16 = ?'
{if} answer {is} 72 {print} 'Correct!'
{else} {print} 'Wrong! The answer was 72'
story: Create a maths game.\n
1:
story: Make a program that checks if your favourite movie is already in the list of the computer.\nIf so, print that you have great taste, otherwise add the movie to the list.\n
code: |
favorite_movies {is} Batman, Spiderman, The Avengers, Jurassic Park
movie {is} {ask} 'What is your favourite movie?'
{if} movie {in} favorite_movies {print} 'You have great taste!'
{else} {print} 'Such a shame that your favourite movie is not in the list, we will add it right away!'
{add} movie {to_list} favorite_movies
6:
1:
code: |
cat_age = age * 5
age = {ask} 'How old are you?'
dog_age = age * 7
{print} 'In dogyears you are ' dog_age ' years old.'
{print} 'In catyears you are ' cat_age ' years old.'
story: Make a program that calculates how old you are in dog and cat years.\nFirst ask the age of the user and start calculating.\nFirst calculate the dogyears then the catyears.\nShow the user the different ages.\n
2:
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
{print} 'You will have to buy ' cakes_amount ' cakes'
story: Create a program that helps you calculate how many cakes you should buy for your birthday party.\n
3:
1:
story: The new school year at Hogwarts is starting! \nIt is the job of the sorting hat to sort you into one of the houses.\nWhich house will you be sorted into?\nAre you a Gryffindor, Hufflepuf, Ravenclaw or Slytherin.\nLet the program wait a short period before revealing your house.\n
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}
2:
code: |
toppings {is} chocolate, cheese, tuna, sprinkles
{print} Your random meal for today is...
food {is} pizza, icecream, salad, sandwich
sleep 2
{print} food {at} {random} with toppings {at} {random}
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!\n
4:
1:
story: You are the newest Pokémon trainer from Pallet Town!\nMake a program that selects your first Pokémon.\nLet the program wait a minute before revealing your first pokémon.\n
code: |
pokemons {is} Pikachu, Charmander, Bulbasaur, Squirtle
{print} 'This is going to be your first Pokémon!'
{sleep}
{print} pokemons {at} {random}
2:
story: Create a lottery that lets you choose an extra price that you might win.\n
code: |
prices {is} car, hamster, 1 million euros
price {is} {ask} 'What would you like to win?'
{add} price {to_list} prices
{print} 'You won a ' prices {at} {random}
7:
1:
story: In a chess tournament there are three players left.\nCreate a program that decides which two players first play against each other.\nFirst print the two players who play the first match, then print against which player the winner will play.\n
code: |
players = Liam, Noah, Sophie
player1 = players {at} {random}
player2 = players {at} {random}
{print} player1 ' first plays against ' player2
{remove} player1 {from} players
{remove} player2 {from} players
{print} 'The winner plays against ' players {at} {random}
2:
story: Create the song 'The wheels on the bus go round and round'\n
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 '
8:
2:
code: |
{print} 'Ready or not here I come!'
counter = 11
{repeat} 10 {times}
counter = counter - 1
{print} counter
{sleep} 1
story: Print the countdown for a game of hide and seek.\n
1:
story: You and four other friends are playing Pokémon Go! Create a program that decides in which team each of you will play.\nEither red, yellow or blue! Take a little pauze after announcing a team.\n
code: |
teams = red, yellow, blue
{print} 'Red, Yellow or Blue?'
{repeat} 5 {times}
{print} 'You are selected in team... '
{print} teams {at} {random}
sleep 2