Skip to content

Commit

Permalink
Level 16
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleenGilsing committed Apr 18, 2024
1 parent a38a6ac commit 121226b
Show file tree
Hide file tree
Showing 51 changed files with 1,683 additions and 86 deletions.
35 changes: 33 additions & 2 deletions content/slides/ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
35 changes: 33 additions & 2 deletions content/slides/bg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
35 changes: 33 additions & 2 deletions content/slides/bn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
35 changes: 33 additions & 2 deletions content/slides/ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
35 changes: 33 additions & 2 deletions content/slides/cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
35 changes: 33 additions & 2 deletions content/slides/cy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
35 changes: 33 additions & 2 deletions content/slides/da.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
35 changes: 33 additions & 2 deletions content/slides/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
35 changes: 33 additions & 2 deletions content/slides/el.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,39 @@ levels:
{for} i {in} {range} 1 {to} 3
{print} friends[i] 's lucky number is ' lucky_numbers[i]
3:
header: Let's try it out!
text: Enjoy the adventures in level 16!
header: Debugging
text: Let's debug this code!
code: |-
{print} 'Friendship test'
{subjects} = ['song', 'movie', 'food', 'drink']
answers_player_1 = []
answers_player_2 = []
score = 100
{for} i {in} {range} 1 {to} 4
answer = {ask} 'what is your favorite ' subjects[i]
{add} answer {to} answers_player_1
{print} 'Player 2, your turn!'
{for} i {in} {range} 0 {to} 4
answer_player_2 = {ask} 'what is player 1s favorite ' subjects
{add} answer_player_2 {in} answers_player_2
{if} answers_player_2[2] == answers_player_1[1]
{print} 'Correct!'
{else}
{print} 'Wrong!'
score = score - 25
{print} 'Player 2, you've scored ' score '%'
{if} score = 100
{print} 'You are an amazing friend'
{if} score < 100 {or} score >= 50
{print} 'You could do better'
{else} score < 50
{print} 'Do you even know this person?!'
debug: 'True'
4:
17:
1:
header: Welcome to level 17
Expand Down
Loading

0 comments on commit 121226b

Please sign in to comment.