encorelab / SCORE

Scripting and ORchestration Environment (SCORE)
Other
2 stars 0 forks source link

Implemented unlocking score constraint in real-time #72

Closed hirokiterashima closed 3 years ago

hirokiterashima commented 3 years ago

Also fixed AT issue that prevented author from selecting component for score constraint.

Test that you can unlock a constraint based on score from the teacher in real time.

Set up:

  1. In the AT, open a unit that is used for a run.
  2. Go to advanced view for the step that you want to lock (step S1), and click on "edit constraints"
  3. Add a constraint:
    • action = "Make this node not visitable"
    • removal conditional = "any"
    • Removal Criteria -- Removal Criterial name: "score" -- Step: choose the step that contains the component that you will be grading ("step S2") -- Component: choose the component that you will be grading ("component S2-C") -- Score(s): a number, like 5, or multiple numbers separated by a comma ("score X")

Screen Shot 2020-09-10 at 9 13 14 AM

  1. As a student, do some work on component S2-C, and try to go to the locked step S1. You shouldn't be able to visit the step, and see a dialog saying that you need to get a score of X on the step S2.
  2. In the grading view, give the student the score of X for component S2-C.
  3. In the student view, try to go to the locked step S1 again. This time, you should be able to advance.

Closes #67