Work on the intro and the index chapter

This commit is contained in:
blinry 2021-01-11 19:16:35 +01:00
parent 4910e4d566
commit 8d333ce56a
31 changed files with 327 additions and 185 deletions
levels/files

View file

@ -1,10 +1,11 @@
title = Unexpected Visitors
cards = checkout commit-auto reset-hard file-new file-delete
cards = 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.
"Coming!" you yell while you jump out of bed. Now quick!
[setup]
@ -12,14 +13,17 @@ 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"
# Remove all litter and trash.
! ls | grep bag_of_chips &&
! ls | grep can &&
! ls | grep socks
# But make sure to keep important things!
ls | grep table
[congrats]
Your parents are happy to see you (and of course your neat and tidy apartment)!
Your parents are happy to see you (and, of course, your neat and tidy apartment)!