Merlin Mission Manager
Curriculum[edit]
Coder Merlin™ Computer Science Curriculum Data | |
Unit: Lab basics Experience Name: Merlin Mission Manager (W1008) Next Experience: () Knowledge and skills:
Topic areas: Tools & technologies Classroom time (average): 60 minutes Study time (average): 180 minutes Successful completion requires knowledge: understand when and how to use the Merlin Mission Manager Successful completion requires skills: ability to use the Merlin Mission Manager to accept, prepare and complete missions; ability to use the Merlin Mission Manager to prepare, test, and submit challenges; ability to navigate through the hierarchy of missions and challenges; ability to reattempt a mission in the Merlin Mission Manager |
Introduction[edit]
The Merlin Mission Manager is your personal control center to Merlin's Challenge Evaluation System. Challenges provide both you and your guide with objective evidence of your skill level as you develop expertise in a particular topic. As such, Missions serve both to provide you with valuable feedback as you are developing your skills and as a demonstration of mastery.
Missions[edit]
At various points along your pathway you'll be asked to complete one or more missions. Missions provide a logical grouping of one or more challenges, generally about a particular subject area or, alternatively, a summary of multiple topics. Just as wiki experiences are labelled using the Wnnnn scheme, missions follow similar rules. Missions will always begin with Mnnnn where the nnnn of the mission usually matches the nnnn of the wiki. Missions also have a two digit suffix, ss. Lower-numbered suffixes generally assist you with skill development, while higher-numbered suffixes provide demonstration of mastery.
At any given time, a Mission will be in one of the following states:
- Not yet eligible - Your guide will provide you with missions at an appropriate pace, so not all missions are available at any given time. You may see a mission name appear in your mission list with an eligible date in the future. If so, the mission will become available to you on that date.
- Eligible, but not yet accepted - On the eligible date you'll be permitted to accept the mission.
- Accepted - Once you've accepted a mission you'll be able to view a list of all included challenges and begin working on solutions. From this point until you either submit the mission or until the mission expires, you'll be able to work on the challenges of the mission.
- Completed - After you've completed all of the required challenges (and as many optional challenges as you'd like) you'll be able to complete the mission. At this point, you'll receive credit for the challenges.
- Expired - Missions are available for a limited time. The Merlin Mission Manager will let you know how much time you have until a mission expires. After this point, you'll no longer be able to complete the mission.
Challenges[edit]
A single mission is comprised of one or more challenges. Each challenge is an opportunity to improve a particular skill and evaluate your mastery of that skill. In almost all cases the Merlin Mission Manager will provide you with instantaneous feedback regarding your results, enabling you to continuously improve your skills.
Within any given mission, challenges will be marked as either required or optional. Of course, it's to your own benefit to complete every available challenge even if it's not strictly required.
Interface[edit]
The Merlin Mission Manager is available as an easy-to-use command line interface. To get started, open a secure shell client and log on to the codermerlin server using your connection string:
john-williams@ssh.codermerlin.com
After you’re connected, you’ll be prompted to enter your password. After a successful logon, you'll land in the "shell". Be sure you're in your home directory. (Remember that you can always get back to your home directory using the "cd" command without any arguments.)
john-williams@codermerlin:~$ cd
Help[edit]
If we ever need a quick reminder of the available commands for the Merlin Mission Manager , we can obtain the list by simply invoking the Merlin Mission Manager without any command or by using the help command. Try it now.
john-williams@codermerlin:~$ merlin
-or-
john-williams@codermerlin:~$ merlin help
List Missions[edit]
The Merlin Mission Manager is aware of the context in which it's been invoked, and will respond accordingly. If we're outside of the required directory hierarchy, Merlin Mission Manager will let us know. Let's see what happens when we invoke the Merlin Mission Manager from our home directory:
john-williams@codermerlin:~$ merlin list
- If you're outside of the Merlin directory and attempt a Merlin Mission Manager command, what is printed for your "Current location"?
We need to be inside the Merlin directory to obtain useful information from Merlin. Let's create that directory now and then enter the directory:
john-williams@codermerlin:~$ mkdir Merlin
john-williams@codermerlin:~$ cd Merlin
john-williams@codermerlin:~/Merlin$
Now, try the list command again:
john-williams@codermerlin:~/Merlin$ merlin list
- If you're inside of the Merlin directory and attempt a Merlin Mission Manager command, what is printed for your "Current location"?
- Based on the output of the above command, what information does the Merlin Mission Manager provide to you?
Let's dissect the output at this level. Merlin will output a table similar to the following:
Current location: Merlin root
Available missions:
Mission | Eligible | Accepted | Due |...
M1008-10 Basic Addition | 11-Jul-2024 | | 15-Jul-2024 (3d 12h 28m 10s) |...
- Mission: This column contains the identifier (e.g. M1008-10) and the name (e.g. "Basic Addition") for the missions that have been assigned to you. The identifier of the mission generally begins with the same four digits that the wiki experience begins with. (Note that this wiki page's identifier is W1008, and the mission is M1008.)
- Eligible: Sometimes your guide may assign missions to which you are not yet eligible. The date at which you'll be eligible to accept the mission is listed in this column.
- Accepted: This is the date that you've accepted the mission. (We'll cover how a mission is accepted below.)
- Due: This is the date (and time) that you'll need to complete the mission by in order to receive the maximum number of points. In addition to the date and time, Merlin Mission Manager will include a count of days (d), hours (h), minutes (m), and seconds (s) remaining.
- Expiration: This is the date (and time) that you'll need to complete the mission by in order to receive any points. In addition to the date and time, Merlin Mission Manager will include a count of days (d), hours (h), minutes (m), and seconds (s) remaining.
- Completed: After a mission is completed, this column will contain that date of completion.
Prepare the Mission List[edit]
Before beginning work on a mission we'll need to do two things. The first is to ensure that the directory for the mission exists. The easiest way to accomplish this is to issue a prepare command to Merlin Mission Manager from with the "Merlin root" directory, but before doing so, let's take a peek at what's there:
john-williams@codermerlin:~/Merlin$ ls
Now, ask Merlin Mission Manager to prepare the directory:
john-williams@codermerlin:~/Merlin$ merlin prepare
Finally, have another look at the directory's contents:
john-williams@codermerlin:~/Merlin$ ls
- Look at the directory listing before and after you issued the "merlin prepare" command. What's changed?
- What do you think the purpose of the "prepare" command is?
Now, enter the mission directory.
Because mission and challenge directory names contain some 'special' characters (such as spaces and brackets), they require that we either include the entire name in quotes or escape (prefix with a special character) each such character. This isn't difficult, but there's an easier way! Every mission and every challenge begins with a unique sequence of characters which do not require escaping. This fact, in combination with what we learned about TAB completion, enables us to simply enter the initial letter, a few numbers, and then TAB. Try it now in order to enter the mission directory.
john-williams@codermerlin:~/Merlin$ cd M1008-10TAB
Either use the above hint, or type:
john-williams@codermerlin:~/Merlin$ cd M1008-10\ (01)\ Basic\ Addition/
Accept Mission[edit]
The first step when beginning any mission is to accept the mission. This command can only be executed from the root directory of a mission.
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition$ merlin mission accept
Let's use the list command again, but this time, from within a mission.
List Challenges[edit]
As a reminder, the Merlin Mission Manager is context-aware, that is, it's behavior depends upon the current directory. Now that we're inside of a mission directory, if we ask for a list, we'll receive a list of challenges rather than a list of missions.
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition$ merlin list
Let's dissect the output at this level. Merlin will output a table similar to the following:
Current location: Basic Addition
Available challenges in this mission:
Challenge |
Required |
Earned |
Available |
Original |
Attempts |
Eligibility
C100 Basic Addition I [Eval] |
Required |
0 |
10 |
10 |
0 / 5 |
Eligible
C110 Basic Addition II [Eval] |
Required |
0 |
10 |
10 |
0 / 5 |
Eligible
C120 Basic Addition III [Eval] |
Required |
0 |
30 |
30 |
0 / 5 |
Eligible
TOTAL |
|
0 |
|
50 |
0% |
- Challenge - This column contains the identifier (e.g. C100) and the name (e.g. "Basic Addition I") for the challenges that are available in this mission. While the numerical identifiers of the challenge are generally the recommended order that you should proceed through the challenges, in most cases this is not strictly required. In some cases, however, there's a dependency between challenges. For example, you may be required to complete C120 before beginning C130. If that's the case, Merlin Mission Manager will let you know when you attempt to prepare the dependent challenge. After the challenge name there may be a word or two in square brackets. This will indicate the language to be used for a programming challenge or "Evaluation" in the case of an assessment.
- Required - This column will let you know if the challenge is required or optional.
- Earned - This column indicates how many points have been earned on the challenge.
- Available - This column indicates how many points would currently be received if the challenge were to be completed successfully. Depending on the scoring mode in effect this value may decrease based on the number of attempts at submission, the due date and expiration date, and the elapsed time since the mission was assigned. (Ask your guide for more information.) However, in all cases, if the number of points is highlighted in green (e.g. 30), then Merlin Mission Manager believes that it's worthwhile for you to make another attempt.
- Original - This column indicates how many points were originally available when the mission was first assigned.
- Attempts - Some challenges may limit the number of submissions which may be attempted. If so, this column will indicate the number of submission attempts so far out of the total number permitted.
- Eligibility - This column will indicate whether or not you remain eligible to attempt another submission, and if not, will usually provide a brief explanation.
Begin Work on a Challenge[edit]
Again, Merlin Mission Manager is sensitive to context. In order to begin work on a challenge, we'll need to be in the correct directory, specifically, a challenge directory. We'll first need to create the challenge directories, if we haven't yet done so. At mission level, execute:
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition$ merlin prepare
You can verify that all of the challenge directories have been created:
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition$ ls
Note that this is the same command that we used to prepare the mission directories. The Merlin Mission Manager knows how to do the right thing based upon the current working directory.
Now, enter the challenge directory. (Remember that you can use the hint referenced above for entering the mission directory.)
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition$ cd C100\ Basic\ Addition\ I\ \[Evaluation\]/
Let's have a look at the contents of this directory:
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition/C100 Basic Addition I [Evaluation]$ ls
Note the current contents. Then, have Merlin Mission Manager prepare the directory:
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition/C100 Basic Addition I [Evaluation]$ merlin prepare
- What changed in this directory after you issued the prepare command?
- What is the purpose of the prepare command and how does its role differ depending on context?
Let's take a closer look at the files that are available in this challenge:
There are four files with a ".txt" extension. They are:
- instructions.txt - This file will always contain the instructions describing what needs to be done. This is always the starting point in any challenge.
- evaluations.txt - This file will be present for evaluations and provides general information regarding evaluation requirements. It won't be present if the challenge is not an evaluation.
- questions.txt - This file will be present for evaluations. It will contain a numbered list of questions that will need to be answered. Be sure to follow the instructions in instructions.txt and evaluations.txt before proceeding.
- answers.txt - This file will usually be present for evaluations. (If not, simply create a new file.) This is the file that Merlin Mission Manager will evaluate for an assessment.
There are two additional files with a ".sh" extension. They are:
- make.sh - Merlin Mission Manager uses this file when building your challenge. Unless instructed otherwise, do not modify this file.
- run.sh - Merlin Mission Manager used this file when executing your challenge. Unless instructed otherwise, do not modify this file.
At this point, you can begin work on your challenge. Some explorers prefer the following workflow:
- Use cat to read evaluations.txt:
john-williams@codermerlin:~/.../C100 Basic Addition I [Evaluation]$ cat evaluations.txt
- Use cat to read instructions.txt:
john-williams@codermerlin:~/.../C100 Basic Addition I [Evaluation]$ cat instructions.txt
- Use emacs to open answers.txt and questions.txt:
john-williams@codermerlin:~/.../C100 Basic Addition I [Evaluation]$ emacs answers.txt questions.txt
After answering all of the questions, we're ready to test.
Testing a Challenge[edit]
A challenge may be tested by using the test command. If testing is available, Merlin Mission Manager will provide you with a line-by-line comparison of what was expected vs. what was actually provided, clearly marking correct and incorrect lines. (It's important to note that not all challenges are eligible for testing, but there's never a penalty for trying.) This will enable you to obtain immediate feedback to evaluate your answer, make any required adjustments, and then test again before submitting your challenge for a score.
- The test command will never affect your score, only submit will do that.
- Partial credit is awarded for evaluations but not for coding challenges.
Let's look at an example:
Current location: Basic Addition Basic Addition I [Evaluation]
Verfication partially succeeded.
Output |
Correct? |
Expected |
-83 |
✓ Match |
-83 |
22 |
✓ Match |
22 |
84 |
✗ Mismatch |
85 |
96 |
✓ Match |
96 |
At a glance, we're able to easily see that we provided that correct answer for every line except the third. On the third line, Merlin Mission Manager was expecting 85 but we provided 84 as our answer. We'll need to go back and correct this error, and then test again.
- If testing is available, it's always in our best interest to test (again and again) until we're convinced that our solution is correct. After we're convinced, we can submit our solution.
- There is never a penalty for testing, regardless of how many times we opt to test.
- Testing is not always available, depending on the challenge.
john-williams@codermerlin:~$ merlin test --show-invisibles
john-williams@codermerlin:~$ merlin test --show-line-numbers
will display line numbers in the verification table and is especially helpful for evaluations, where the line number matters
Submitting a Challenge[edit]
When we're ready to receive a score, we use the merlin submit command. When we issue this command, we'll receive a score based on how closely our actual output matches the expected output. Let's try it now:
john-williams@codermerlin:~/.../C100 Basic Addition I [Evaluation]$ merlin submit
We'll receive output very similar to that of a test, but the results of the evaluation will be scored. To see a detailed description of our score, we can use the list command:
john-williams@codermerlin:~/.../C100 Basic Addition I [Evaluation]$ merlin list
Submissions for this challenge:
This challenge is required.
You've submitted this challenge 1 time.
Your maximum score so far is 4 points out of a maximum of 5 points.
You have 4 attempts remaining.
Successfully submitting this challenge will result in a maximum award of 9 points.
The Merlin Mission Manager is providing us with details regarding:
- The number of submissions that we've made so far
- The number of submissions (attempts) remaining
- The maximum score that we've received so far
- The maximum score that we would receive upon a subsequent successful submission
Completing a Mission[edit]
We follow the cycle above for each challenge in the mission:
- Prepare the challenge
- Answer the challenge questions or complete the required coding
- Test the challenge (if testing is available)
- Submit the challenge
When we've completed all of the challenges in the mission, in order to receive credit, we have one last step to take at the mission level. (Remember that the mission level will be a directory that begins with an "M".)
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition$ merlin mission complete
Note that the Merlin Mission Manager will warn us if we attempt to mark a mission as complete if we haven't yet completed all of the required challenges.
Reattempting a Mission[edit]
Most missions which have been completed or have expired may be reattempted. In order to do so, first enter the mission which you'd like to reattempt:
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition$ merlin mission reattempt
This will create a new mission which may be prepared:
john-williams@codermerlin:~/Merlin/M1008-10 (01) Basic Addition$ cd ..
john-williams@codermerlin:~/Merlin$ merlin prepare
john-williams@codermerlin:~/Merlin$ cd M1008-10\ (02)\ Basic\ Addition$
Then, accept and prepare the mission as you would normally:
john-williams@codermerlin:~/Merlin/M1008-10 (02) Basic Addition$ merlin mission accept
john-williams@codermerlin:~/Merlin/M1008-10 (02) Basic Addition$ merlin mission prepare
Note that if you are enrolled in a course with a guide you should understand their rules before reattempting a mission.
[edit]
Coming Soon | |
Navigating from Challenge to Challenge |
Newly Assigned Missions[edit]
After completing a mission Merlin Mission Manager may assign you a new mission. If so, Merlin will let you know:
john-williams@codermerlin:~/Merlin/M1008-10 Basic Addition$ merlin mission complete
Note:
You are eligible for the following missions:
Bash Basics
If this is the case, return to the Merlin directory and ask Merlin for a list of available missions.
Workflow Overview[edit]
- The Merlin Mission Manager is your personal control center for Merlin's Challenge Evaluation System
- Missions provide a logical grouping of one or more challenges
- Each challenge is an opportunity to improve a particular skill and evaluate your mastery of that skill
- The Merlin Mission Manager is aware of the context in which it's been invoked
- Important commands to Merlin Mission Manager include:
- mission accept - Accept the mission in which you are currently located. After acceptance, you may begin solving the challenges in the mission.
- list - Provide information about the current directory (either mission or challenge).
- prepare - Prepare the mission or challenge by creating the directory structure and files required
- test - Test a challenge. The Merlin Mission Manager will execute the challenge with various inputs and display the results. Testing a challenge will never impact your score. (Not all challenges are eligible for testing.)
- submit - Submit a challenge. The Merlin Mission Manager will execute the challenge with various inputs and then display and record the results of your score.
- mission complete - Mark the mission as complete. After completion, you'll receive credit for successfully completed challenges.
Exercises[edit]
Experience Metadata
Experience ID | W1008 |
---|---|
Next experience ID | |
Unit | Lab basics |
Knowledge and skills | §10.241 |
Topic areas | Tools & technologies |
Classroom time | 60 minutes |
Study time | 3 hours180 minutes <br /> |
Acquired knowledge | understand when and how to use the Merlin Mission Manager |
Acquired skill | ability to use the Merlin Mission Manager to accept, prepare and complete missions ability to use the Merlin Mission Manager to prepare, test, and submit challenges ability to navigate through the hierarchy of missions and challenges ability to reattempt a mission in the Merlin Mission Manager |
Additional categories |