Skip to content

Commit

Permalink
Correction of typos (hedyorg#680)
Browse files Browse the repository at this point in the history
I corrected some typos I came across.
  • Loading branch information
MarleenGilsing authored Aug 26, 2021
1 parent b334591 commit 3968f37
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions coursedata/adventures/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ adventures:
## Challenge
Can you finish the scary story? Or make up your own haunted house story?
start_code: "How did I get here?"
start_code: "print How did I get here?"
2:
story_text: |
## Haunted house game
Expand Down Expand Up @@ -1086,18 +1086,19 @@ adventures:
## Haunted House
Up until this level the haunted house game always asked the player to choose a door, but as you might have noticed, they didn't really have to answer correctly.
In the player filled in a completely random answer, the game would still work and the player might even win (despite not picking a door).
In level 4 you can pnly win the game by picking the same door Hedy picked randomly.
In level 4 you can only win the game by picking the same door Hedy picked randomly.
## Example Hedy code
```
print 'Escape from the haunted house!'
print 'There are 3 doors in front of you...'
doors is 1,2,3
monsters is werewold, mummy, vampire, zombie
monsters is werewolf, mummy, vampire, zombie
chosendoor is ask 'Which door do you choose?'
print 'You chose door...' chosendoor
correctdoor is doors at random
if chosendoor is correctdoor print 'Great! Youve escaped!' else print 'Oh no! You are being eaten by a...' monsters at random
if chosendoor is correctdoor print 'Great! Youve escaped!'
else print 'Oh no! You are being eaten by a...' monsters at random
```
start_code: ""
Expand Down

0 comments on commit 3968f37

Please sign in to comment.