move algorithm to own file

This commit is contained in:
SowinskiBraeden committed 2024-10-19 13:31:10 -07:00
1 parent 257758686a
commit c28f6e5353
3 files changed
+573 -540

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
#include <stdint.h>
#include <string.h>
#include "main.h"
#include "students.h"
#include "courses.h"
#ifndef GENERATOR_H_INCLUDED
#define GENERATOR_H_INCLUDED
const char FLEX[2][11] = {"XAT--12A-S", "XAT--12B-S"};
typedef struct {
uint8_t numberOfClasses;
char classes[CLASSROOMS][MAX_COURSE_ID_LEN];
} TIMETABLE_BLOCK;
typedef struct {
TIMETABLE_BLOCK timetable[TOTAL_BLOCKS];
bool success;
} TIMETABLE;
typedef enum {
FirstToSecondSemester,
SecondToFirstSemester
} StepType;
TIMETABLE generateTimetable(STUDENT *students, size_t size_students, COURSE *courses, size_t size_courses);
bool isFlex(char crsNo[MAX_COURSE_NO_LEN]);
#endif