game_equal + edit README
This commit is contained in:
1 parent
3d9f9edb3e
commit
097e4da7c6
2 files changed
+9
-2
No files matched your search
@@ -11,7 +11,7 @@ Projet Techno
|
||||
| [game_new](./game.c#L9-17) | [game game_new(square *squares)](./game.h#L73-81) | @thperrier | | <ul><li>[x] </li></ul> |
|
||||
| [game_new_empty](./game.c#L19-41) | [game game_new_empty(void)](./game.h#L83-88) | @thperrier | | <ul><li>[x] </li></ul> |
|
||||
| [game_copy](./game.c#L43-51) | [game game_copy(cgame g)](./game.h#L90-96) | @thperrier | | <ul><li>[x] </li></ul> |
|
||||
| [game_equal](./game.c#L?) | [bool game_equal(cgame g1, cgame g2)](./game.h#L98-106) | @thperrier | | <ul><li>[ ] </li></ul> |
|
||||
| [game_equal](./game.c#L53-62) | [bool game_equal(cgame g1, cgame g2)](./game.h#L98-106) | @thperrier | | <ul><li>[x] </li></ul> |
|
||||
| [game_delete](./game.c#L?) | [void game_delete(game g);](./game.h#L108-113) | @thperrier | | <ul><li>[ ] </li></ul> |
|
||||
| [game_set_square](./game.c#L?) | [void game_set_square(game g, uint i, uint j, square s)](./game.h#L115-128) | @nnunes | | <ul><li>[ ] </li></ul> |
|
||||
| [game_get_square](./game.c#L?) | [square game_get_square(cgame g, uint i, uint j)](./game.h#L130-140) | @thoguet | | <ul><li>[ ] </li></ul> |
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user