|
|
|
@ -243,9 +243,8 @@ int checkWin(int** gameBoard, int** hiddenGameBoard, int size, int numBombs, int
|
|
|
|
if (uncoveredCells == totalCells - numBombs && numFlags == numBombs) {
|
|
|
|
if (uncoveredCells == totalCells - numBombs && numFlags == numBombs) {
|
|
|
|
char message[] = "Herzlichen Glückwunsch! Du hast gewonnen! Starte neu mit der ON Taste.\r\n";
|
|
|
|
char message[] = "Herzlichen Glückwunsch! Du hast gewonnen! Starte neu mit der ON Taste.\r\n";
|
|
|
|
HAL_UART_Transmit(&huart2, (uint8_t*)message, sizeof(message), 100);
|
|
|
|
HAL_UART_Transmit(&huart2, (uint8_t*)message, sizeof(message), 100);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return uncoveredCells == totalCells - numBombs && numFlags == numBombs;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void handleBombExploded() {
|
|
|
|
void handleBombExploded() {
|
|
|
|
|