From bd5f8b33f33b1bb47ed3ea369ff5eaea7ec6ee16 Mon Sep 17 00:00:00 2001 From: bleeptrack Date: Tue, 9 Feb 2021 15:50:14 +0100 Subject: [PATCH] improving interior design level --- levels/files/files-add | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/levels/files/files-add b/levels/files/files-add index 8de8273..6c281f2 100644 --- a/levels/files/files-add +++ b/levels/files/files-add @@ -3,21 +3,29 @@ cards = file-new file-delete [description] -Today has been stressful and exhausting. Let's make sure you know how to interact with your current environment, before doing fancy Git stuff. +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! -You're moving into your student apartment, but soon discover that some furniture is missing! +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 it's description. +Don't forget to add a color and description to your new furnitures, too! [setup] -echo A yellow cupboard with lots of drawers. > cupboard -echo A small yellow shelf. > shelf +echo A yellow cozy bed. > bed [win] -# Add two more pieces of furniture (in matching colors). +# 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 -l yellow * | wc -l)" -test "$NUM_FILES" -ge 4 && test "$YELLOW_FILES" = "$NUM_FILES" +test "$NUM_FILES" -ge 2 && test "$YELLOW_FILES" = "$NUM_FILES" [congrats]