Reorder levels and chapters into a better sequence

This commit is contained in:
blinry 2021-01-07 12:57:31 +01:00
parent 5c1f1ce722
commit c99a35d54f
40 changed files with 128 additions and 288 deletions

23
levels/files/files-add Normal file
View file

@ -0,0 +1,23 @@
title = Interior design
cards = checkout commit-auto reset-hard file-new file-delete
[description]
Our client want some new furniture! You'll discover that they have a very special taste - please add some more furniture that matches this style and make a commit!
[setup]
echo A yellow cupboard with lots of drawers. > cupboard
echo A really big yellow shelf. > shelf
git add .
git commit -m "A cupboard and a shelf"
[win]
NUM_FILES="$(git ls-tree --name-only -r HEAD | wc -l)"
YELLOW_FILES="$(git grep -l yellow HEAD | wc -l)"
test "$NUM_FILES" -ge 5 && test "$YELLOW_FILES" = "$NUM_FILES"
[congrats]
Thanks! Our clients says that they really like what you picked!

25
levels/files/files-delete Normal file
View file

@ -0,0 +1,25 @@
title = Unexpected Visitors
cards = checkout commit-auto reset-hard file-new file-delete
[description]
*ring ring* Oh no! You wanted to meet with your parents in your student apartment and your alarm did not go off in time to clean your room!
"Coming!" you yell while you jump out of bed. Now quick! Remove all litter and trash you can find by using `rm [file]` and commit your changes.
[setup]
echo Very smelly socks. > socks
echo A tiny couch table. > table
echo An empty energy drink can. > can
echo An empty bag of chips. > bag_of_chips
git add .
git commit -m "weekend"
[win]
NUM_FILES="$(git ls-tree --name-only -r HEAD | wc -l)"
test "$NUM_FILES" -eq 1 && test "$(git ls-tree --name-only -r HEAD)" = "table"
[congrats]
Your parents are happy to see you (and of course your neat and tidy apartment)!

28
levels/files/files-move Normal file
View file

@ -0,0 +1,28 @@
title = No sleep required
cards = checkout commit-auto reset-hard file-new file-delete file-rename
[description]
Our client just let us know they don't need sleep! Huh.
Because of that, they won't require a bed, and have asked you to build some other piece of furniture from the wood.
Can you rename the object into something else, give it a new description, and make a commit from that?
[setup]
echo A yellow cupboard with lots of drawers. > cupboard
echo A really big yellow shelf. > shelf
echo A comfortable, yellow bed with yellow cushions. > bed
git add .
git commit -m "Initial furniture"
[win]
NUM_FILES="$(git ls-tree --name-only -r HEAD | wc -l)"
NUM_BEDS="$(git ls-tree --name-only -r HEAD | grep '^bed$' | wc -l)"
test "$NUM_BEDS" = 0 && test "$NUM_FILES" -ge 3
[congrats]
Neat! It even still looks a bit comfortable!