mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-01 20:42:01 +02:00
Work on the intro and the index chapter
This commit is contained in:
parent
4910e4d566
commit
8d333ce56a
31 changed files with 327 additions and 185 deletions
levels/intro
44
levels/intro/risky
Normal file
44
levels/intro/risky
Normal file
|
@ -0,0 +1,44 @@
|
|||
title = A normal day
|
||||
cards =
|
||||
|
||||
[description]
|
||||
|
||||
You're working on an essay about goldfish! Your current version is already quite nice, but needs a bit more work.
|
||||
|
||||
[congrats]
|
||||
|
||||
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!
|
||||
|
||||
You decide to be more careful in the future.
|
||||
|
||||
(Click "Next Level" as soon as you're ready!)
|
||||
|
||||
[setup]
|
||||
|
||||
rm -rf .git
|
||||
|
||||
echo "~ Why are the best pets ~
|
||||
|
||||
- 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]
|
||||
|
||||
test "$(cat essay.txt | wc -l )" -ge 7 && echo "~ Why goldfish are the best pets ~
|
||||
|
||||
- asdijwrlj
|
||||
- they
|
||||
- are
|
||||
- delicious
|
||||
- adfkafkasdufyasfiudasd" > essay.txt && rm -f cat
|
||||
|
||||
|
||||
[win]
|
||||
|
||||
# Add two more lines to essay.txt!
|
||||
test "$(cat essay.txt | wc -l )" -ge 7
|
Loading…
Add table
Add a link
Reference in a new issue