Grading Script

In Elice, we use grader.* to evaluate code. You can use various grading methods such as standard input/output and code comparison.

Writing a Grading Script

The grader.* files in the .elice folder are where you can write the answer code to evaluate the student's code. Here, you can write the grading script. Each file has the following structure:

  • .elice/grader.py - The file where you write the actual grading script.

  • elice/grader.sh - The bash shell script that runs when the learner clicks the submit button.

  • .elice/grader_elice_utils.py - A collection of Elice utils used in the submission environment during grading.

  • .elice/runner.sh - The bash shell script that runs when the learner clicks the run button.

Conducting the Grading Process

When the student writes code in the editor and clicks the submit button, the student's code is automatically graded based on the answer code written in grader.* by the teacher.

Last updated