|
@ -22,7 +22,6 @@ void game_minesweeper(); |
|
|
void options_minesweeper(); |
|
|
void options_minesweeper(); |
|
|
Minesweeper_Board initialize_minesweeper(); |
|
|
Minesweeper_Board initialize_minesweeper(); |
|
|
void place_bombs(Minesweeper_Board *board); |
|
|
void place_bombs(Minesweeper_Board *board); |
|
|
bool bomb_in_array(int *array, int bomb, int length); |
|
|
|
|
|
bool array_contains_value(int *array, int value, int length); |
|
|
bool array_contains_value(int *array, int value, int length); |
|
|
void draw_minesweeper(Minesweeper_Board *board); |
|
|
void draw_minesweeper(Minesweeper_Board *board); |
|
|
int open_tile(Minesweeper_Board *board, int tile); |
|
|
int open_tile(Minesweeper_Board *board, int tile); |
|
@ -182,13 +181,6 @@ void place_bombs(Minesweeper_Board *board){ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bool bomb_in_array(int *array, int value, int length){ |
|
|
|
|
|
for(int i = 0; i < length; i++){ |
|
|
|
|
|
if(array[i] == value){return true;} |
|
|
|
|
|
} |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool array_contains_value(int *array, int value, int length){ |
|
|
bool array_contains_value(int *array, int value, int length){ |
|
|
for(int i = 0; i < length; i++){ |
|
|
for(int i = 0; i < length; i++){ |
|
|
if(array[i] == value){return true;} |
|
|
if(array[i] == value){return true;} |
|
|