1.7 KiB
1.7 KiB
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| battle | Team Build | 200 | 90 | 3 |
Team Build
[INCOMING — Mission Control, Earth]
Cadets, this is your final task before Python. You and a partner will automate a mission setup together — one writing, the other reviewing. Then swap.
Pair up. Decide who goes first as defender and who goes first as attacker.
[END TRANSMISSION]
The Task
The defender writes a single shell script — launch.sh — that,
when run inside an empty workspace, does the following in order:
- Creates a folder called
mission/and enters it. - Initializes a fresh Git repo on branch
main. - Sets
user.nameanduser.emailon the repo (use your own). - Creates
manifest.txtcontaining exactly:Mission Apollo - Creates
crew.txtcontaining exactly:Cadet A, Cadet B - Creates
coords.txtcontaining exactly:lat: 0.0, lon: 0.0 - Commits each file separately, in this exact order, with messages:
add manifestadd crewadd coords
- Prints
MISSION READYto stdout when done.
Battle Rules
- Defender: writes
launch.shfrom scratch in a clean workspace. Does not show the file until done. Time limit: 30 minutes. - Attacker: receives the script, runs it in a clean folder,
inspects the resulting
mission/, and submits a review through the platform's review form. - Then swap: roles flip. The new defender writes their own
launch.sh(no copy-pasting). 30 more minutes. - Both pass the battle if both scripts pass review.
Tools You'll Use
Everything you've learned this module:
mkdir, cd, echo, >, git init, git config, git add,
git commit, and a shebang to make the script run.