feat: initial commit

This commit is contained in:
2025-07-05 00:07:04 +02:00
commit 2668db0f18
14 changed files with 3679 additions and 0 deletions

23
types.ts Normal file
View File

@ -0,0 +1,23 @@
export type ExercisePartType = 'struct-definition' | 'typedef-struct' | 'array-initialization' | 'pointer-manipulation' | 'printf' | 'function-definition' | 'main-function';
export interface ExercisePart {
id: string;
prompt: string;
solution: string;
points: number;
type: ExercisePartType;
}
export interface Exercise {
id: string;
title: string;
parts: ExercisePart[];
explanation: string;
}
export interface CheckResult {
partId: string;
isCorrect: boolean;
explanation: string;
error?: string; // To hold API or parsing errors
}