Only allocate someone if they weren't allocated the previous day

This commit is contained in:
2024-04-08 18:45:40 +01:00
parent e20c3167e9
commit 05b6c54895
2 changed files with 25 additions and 11 deletions

View File

@@ -32,6 +32,7 @@ struct slot_result {
void generate_rota(struct slot_result *rota_out);
void generate_allocation(int slot, int job, struct allocation *allocation_out);
bool satisfies_allocation_constraints(const struct allocation *allocation);
bool previously_allocated(int previous_allocations[MAX_JOBS], int person);
bool satisfies_slot_constraints(const struct slot_result *slot);
void print_rota(const struct slot_result *rota);