From 1a095735b1d8e7ade61ac4f936032e0c9dcc044f Mon Sep 17 00:00:00 2001 From: Physick <96335032+DegustatorPonos@users.noreply.github.com> Date: Tue, 7 Jul 2026 19:05:45 +0500 Subject: Resources loading --- src/puzzles/puzzle.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/puzzles/puzzle.h (limited to 'src/puzzles/puzzle.h') diff --git a/src/puzzles/puzzle.h b/src/puzzles/puzzle.h new file mode 100644 index 0000000..8f7ef0d --- /dev/null +++ b/src/puzzles/puzzle.h @@ -0,0 +1,31 @@ +#include + +#ifndef PUZZLE_H + +typedef struct { + // TODO: figure it out + char *LuaSnippet; + char *ExpectedOutput; +} Test; + +typedef struct { + char *Name; + char *Description; + + /// The tests that are accessible for an end user + size_t PublicTestC; + Test *PublicTests; + + size_t PrivateTestC; + Test *PrivateTests; +} Puzzle; + +// TODO +void ReadPuzzleFromFile(const char *path); + +void FreePuzzle(Puzzle *self); +/// A prebuilt puzzle. Used for debuging +Puzzle *GetTestPuzzle(); + +#define PUZZLE_H +#endif // PUZZLE_H -- cgit v1.3