repositories
/
TD_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TP_13 exo2: More explicit name to the includes path variable
[TD_C.git]
/
TP_13
/
exo2
/
lib
/
coordinates.h
diff --git
a/TP_13/exo2/lib/coordinates.h
b/TP_13/exo2/lib/coordinates.h
index 873d404735e9325853fff3703a8c636df4798520..3a17ade5a608a152f621d6a7fefa15b3915f9e61 100644
(file)
--- a/
TP_13/exo2/lib/coordinates.h
+++ b/
TP_13/exo2/lib/coordinates.h
@@
-19,6
+19,8
@@
#ifndef COORDINATES_H
#define COORDINATES_H
#ifndef COORDINATES_H
#define COORDINATES_H
+#include <stdbool.h>
+
/* we only have nine elements in the grid */
#define MAX_COORDINATES 9
/* we only have nine elements in the grid */
#define MAX_COORDINATES 9
@@
-30,6
+32,7
@@
typedef struct coordinates_s {
void init_coordinates(coordinates_t* coordinates_array);
coordinates_t set_coordinates(int y, int x, unsigned type);
void init_coordinates(coordinates_t* coordinates_array);
coordinates_t set_coordinates(int y, int x, unsigned type);
-unsigned add_coordinates(coordinates_t new_coordinates, coordinates_t* coordinates_array);
+unsigned add_coordinates(coordinates_t new_coordinates, coordinates_t* coordinates_array, unsigned round);
+bool chk_win_conditions(coordinates_t* coordinates_array);
#endif /* COORDINATES_H */
#endif /* COORDINATES_H */