17 lines
399 B
C
17 lines
399 B
C
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
#include "../include/labyrinth.h"
|
|
#include "../include/water.h"
|
|
#include "../include/priority_queue.h"
|
|
|
|
bool compare(coor* c1, coor* c2){
|
|
return c1->x < c2->x;
|
|
}
|
|
|
|
void water(Labyrinth *labyrinth){
|
|
int i, j, h, n = labyrinth->x_size, m = labyrinth->y_size;
|
|
|
|
priority_queue(pq, compare); // DA METTERE RBTREE (mai)
|
|
|
|
|
|
} |