2021-01-13 17:30:32 +01:00
|
|
|
title = Living dangerously
|
2021-01-11 19:16:35 +01:00
|
|
|
cards =
|
|
|
|
|
|
|
|
[description]
|
|
|
|
|
2021-01-13 17:30:32 +01:00
|
|
|
So you're working on an essay about goldfish! Your current version is already quite nice, but needs a bit more work.
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
[congrats]
|
|
|
|
|
2021-01-13 17:30:32 +01:00
|
|
|
Suddenly, your cat jumps on your keyboard, deletes what you've written, and runs away! Oh no. Just look at it now! All your hard work, destroyed!
|
2021-01-11 19:16:35 +01:00
|
|
|
|
2021-01-13 17:30:32 +01:00
|
|
|
You clearly need a better solution.
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
(Click "Next Level" as soon as you're ready!)
|
|
|
|
|
|
|
|
[setup]
|
|
|
|
|
|
|
|
rm -rf .git
|
|
|
|
|
2021-01-13 17:30:32 +01:00
|
|
|
echo "~ Why goldfish are the best pets ~
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
- They are pretty.
|
|
|
|
- They don't pee on the carpet.
|
|
|
|
- They don't make any noise." >> essay.txt
|
|
|
|
|
|
|
|
echo "Your cat is sitting next to you, watching you intensely.
|
|
|
|
|
|
|
|
It's small, black, and very cute!" > cat
|
|
|
|
|
|
|
|
[actions]
|
|
|
|
|
2021-01-13 17:30:32 +01:00
|
|
|
test "$(cat essay.txt | wc -l )" -ge 6 && echo "~ Why goldfish are the best pets ~
|
2021-01-11 19:16:35 +01:00
|
|
|
|
|
|
|
- asdijwrlj
|
|
|
|
- they
|
|
|
|
- are
|
|
|
|
- delicious
|
|
|
|
- adfkafkasdufyasfiudasd" > essay.txt && rm -f cat
|
|
|
|
|
|
|
|
|
|
|
|
[win]
|
|
|
|
|
2021-01-13 17:30:32 +01:00
|
|
|
# Add another line to essay.txt!
|
|
|
|
test "$(cat essay.txt | wc -l )" -ge 6
|