NickA02 / SOTestingEnv

This project aims to create a web-based coding platform specifically tailored for Science Olympiad programming events.
2 stars 0 forks source link

Generate Questions Directory #56

Closed NickA02 closed 1 week ago

NickA02 commented 2 weeks ago

Hello! Another relatively minor but important feature. This PR introduces the generate-blank-questions ES Script! This will allow for template generation and new additional question generation. I am pasting the ES Documentation from the readMe

generate_blank_questions

Generates a template file structure for the es_files/questions subdirectory. If questions already exist in the directory, this will generate more questions starting from the largest indexed q# found in the subdirectory. Generated questions will be in the format

├─ q1/
│ ├─ prompt.md
│ ├─ test_cases.py
│ ├─ demo_case.py
Command
python3 -m backend.script.generate_blank_questions AMT
Arguments
Argument Description Default
AMT The amount of questions to generate. Minimum 1. 3
id-mustafa commented 2 weeks ago

I love the functionality and simplicity. Tested out on my end. LGTM!