Only allocate someone if they weren't allocated the previous day
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user