diff --git a/Minesweeper/Core/Src/spielfeld.c b/Minesweeper/Core/Src/spielfeld.c index b488de8..8885b23 100644 --- a/Minesweeper/Core/Src/spielfeld.c +++ b/Minesweeper/Core/Src/spielfeld.c @@ -243,9 +243,8 @@ int checkWin(int** gameBoard, int** hiddenGameBoard, int size, int numBombs, int if (uncoveredCells == totalCells - numBombs && numFlags == numBombs) { 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); + return 1; } - - return uncoveredCells == totalCells - numBombs && numFlags == numBombs; } void handleBombExploded() {