game_equal + edit README

This commit is contained in:
Thibault Perrier committed 2021-11-28 23:10:52 +01:00
1 parent 3d9f9edb3e
commit 097e4da7c6
2 files changed
+9 -2

No files matched your search

+8 -1
View File
@@ -51,7 +51,14 @@ game game_copy(cgame g1) {
}
bool game_equal(cgame g1, cgame g2) {
return false;
for (int i = 0; i < DEFAULT_SIZE; i++) {
for (int j = 0; j < DEFAULT_SIZE; j++) {
if (g1->tab_cell[i][j] != g2->tab_cell[i][j]) {
return false;
}
}
}
return true;
}
void game_delete(game g) {