| 125 | |
| 126 | |
| 127 | class JudgeConfig: |
| 128 | image: str = None |
| 129 | init_script: List[Tuple[str, str]] = None |
| 130 | start: Tuple[str, str] = None |
| 131 | description: str |
| 132 | check: list = None |
| 133 | match: dict = None |
| 134 | example_script: str = None |
| 135 | |
| 136 | def get_evaluation_type(self): |
| 137 | if self.check: |
| 138 | return "check" |
| 139 | elif self.match: |
| 140 | return "match" |
| 141 | |
| 142 | def get_evaluation_content(self): |
| 143 | return self.check or self.match |
| 144 | |
| 145 | |
| 146 | class OSInteraction(Task): |