This repository provides the setup for implementing CS50’s automatic grading system using submit50 and check50. It includes step-by-step instructions for both instructors and students on how to use the system for assignment submission and grading.
- Visit submit50.cs50.io and log in.
- Create a new course with a unique name. This course will manage the student submissions.
- The slug follows this format:
github_username/github_repo/branch_name/folder - Example slug:
saadkarim754/cfp_checks/main/hello
-
Inside the folder corresponding to your slug (
main/helloin this case), create a.cs50.yamlfile. -
This file specifies the files that students need to submit:
name: hello files: - hello.c - README.md
- Write checks to verify the correctness of student submissions. These checks validate whether the submitted code meets the requirements.
- Check files should reside in the path defined by the slug. For reference, you can review CS50’s check examples in the CS50 Problems GitHub Repository.
- Verify that the checks are working with the slug you’ve defined. Use
check50to validate student submissions andsubmit50to ensure the correct files are collected.
- Visit cs50.dev and log in using your GitHub account.
- Authorize access to CS50 tools for seamless integration with the grading system.
- Implement the assignment as specified by your instructor. Ensure that your code follows the provided guidelines for coding and file structure.
-
Once you’ve completed your code, use the following command to submit your work:
submit50 saadkarim754/cfp_checks/main/hello
-
You may need to authorize
submit50for the submission to go through.
- After submitting, you’ll receive a confirmation message indicating that your files have been successfully uploaded. you can check the submissions at (https://submit.cs50.io/courses/)
Here’s an example of how the slug is structured and the expected file setup.
Example Slug: saadkarim754/cfp_checks/main/hello
-
Problem:
submit50doesn’t collect the correct files
Make sure that the.cs50.yamlfile correctly lists all the files that need to be submitted, and check that the file paths are accurate. -
Problem:
check50fails to run checks correctly
Ensure that the check files are placed in the correct path and properly follow the structure outlined in the CS50 checks documentation.