mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-09 05:02:22 +02:00
finished the mechanism for setting the language
This commit is contained in:
parent
705cc849c2
commit
50ee071f0e
214 changed files with 94 additions and 10 deletions
levels/en_EN/files
32
levels/en_EN/files/files-add
Normal file
32
levels/en_EN/files/files-add
Normal file
|
@ -0,0 +1,32 @@
|
|||
title = Interior design
|
||||
cards = file-new file-delete
|
||||
|
||||
[description]
|
||||
|
||||
Now that your room looks tidy, you can start to unpack your stuff. You brought two new pieces of furniture with you and with a bright smile,
|
||||
you see that their colors match the color of your bed!
|
||||
|
||||
Build up your two pieces of furniture by playing the touch card.
|
||||
Then name your furniture - you can choose whatever you like.
|
||||
|
||||
Make sure the colors match! You can find the bed's color in its description.
|
||||
Don't forget to add a color and description to your new furnitures, too!
|
||||
|
||||
[setup]
|
||||
|
||||
echo A yellow cozy bed. > bed
|
||||
|
||||
[win]
|
||||
|
||||
# Add two more pieces of furniture
|
||||
NUM_FILES="$(ls | wc -l)"
|
||||
test "$NUM_FILES" -ge 3
|
||||
|
||||
# Make sure the colors match your bed's color.
|
||||
NUM_FILES="$(ls | wc -l)"
|
||||
YELLOW_FILES="$(grep -li yellow * | wc -l)"
|
||||
test "$NUM_FILES" -ge 2 && test "$YELLOW_FILES" = "$NUM_FILES"
|
||||
|
||||
[congrats]
|
||||
|
||||
Don't you immediately feel more at home?
|
36
levels/en_EN/files/files-delete
Normal file
36
levels/en_EN/files/files-delete
Normal file
|
@ -0,0 +1,36 @@
|
|||
title = Unexpected Roommates
|
||||
cards = file-delete
|
||||
|
||||
[description]
|
||||
|
||||
The first day at Time Travel School comes to an end and you receive the key to your room.
|
||||
Full of excitement you open the door just to find... spider webs! Spider webs everywhere!
|
||||
|
||||
Remove all the spider webs you can find with the remove card!
|
||||
|
||||
[cli]
|
||||
|
||||
On the command line, you can easily delete all files ending in -web using this command:
|
||||
|
||||
rm *web
|
||||
|
||||
[setup]
|
||||
|
||||
echo A tiny spider web is next to your window. > tiny_web
|
||||
echo A big spider web sticks above your bed. > big_web
|
||||
echo A cozy bed. > bed
|
||||
echo An extra thick spider web is right beside your door. > thick_web
|
||||
|
||||
[win]
|
||||
|
||||
# Remove all spider webs.
|
||||
! ls | grep thick_web &&
|
||||
! ls | grep big_web &&
|
||||
! ls | grep tiny_web
|
||||
|
||||
# But make sure you keep your bed!
|
||||
ls | grep bed
|
||||
|
||||
[congrats]
|
||||
|
||||
Your room looks now very tidy and cozy! Time to unpack your stuff!
|
3
levels/en_EN/files/sequence
Normal file
3
levels/en_EN/files/sequence
Normal file
|
@ -0,0 +1,3 @@
|
|||
files-delete
|
||||
files-add
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue