add music on each moves lighbulb / mark and when an error occurs

This commit is contained in:
Nessar committed 2022-03-21 05:56:34 +01:00
1 parent 459b66b955
commit 76e4d87d70
15 files changed
+141 -52

No files matched your search

-17
View File
@@ -95,23 +95,6 @@ void game_save(cgame g, char* filename) {
fclose(f);
}
/**
* @brief Test if there is any error on the entire game
*
* @param g the game to analyze
* @return true if there is 1 or more error on the game g
* @return false if there is no one error on the game g
*/
bool game_has_error_general(cgame g) {
for (uint i = 0; i < game_nb_rows(g); i++) {
for (uint j = 0; j < game_nb_cols(g); j++) {
if (game_has_error(g, i, j))
return true;
}
}
return false;
}
/**
* @brief Change the array diagToTest who must containt coordinate i,j of a case else -1 if the cases are not on the same row / column take the cross point of
* the two points