aniervs / GraderMock

This is a project to complete live during a programming class, where some assignments are to solve issues. This project mocks a system from standard programming competitions (I/O checks, and AC,WA,MLE,TLE,RTE verdicts)
0 stars 2 forks source link
python

Grader

This project is a basic mock version of a testing system like DMOJ or Leetcode.

DEMO

Verdicts

Instructions on how to replicate

Installation

Clone the repository, create the virtual environment and install requirements.

git clone https://github.com/aniervs/GraderMock
cd GraderMock
python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt

Run

Navigate to the project's root folder and just run the following in your terminal

streamlit run ./src/app.py

Specifications

Problem structure

Inside the folder assets/, there is the folder problems/ that contains all problems.

Each problem is defined by a folder with its name (for e.g., problems/alice_bob/) that contains the following structure

❯ tree alice_bob
alice_bob
├── description.md
├── metadata.json
└── testcases
    ├── input1.txt
    ├── input2.txt
    ├── output1.txt
    └── output2.txt