3 Commits
Author SHA1 Message Date
wiesendsi102436 27eafd14cc Merge pull request 'simon' (#3) from simon into main
Reviewed-on: #3
2025-10-31 08:05:56 +00:00
wiesendsi102436 4041e9ee9b clean up 2025-10-31 09:05:06 +01:00
wiesendsi102436 11871e8c65 return error if some words couldn't be placed 2025-10-31 08:55:47 +01:00
4 changed files with 23 additions and 7 deletions
+2
View File
@@ -5,3 +5,5 @@ runTests
main.o
graphicalGame.o
wordsalad
wordsalad_initial.exe
runTests.exe
+8 -1
View File
@@ -36,11 +36,18 @@ int main(int argc, char *argv[])
// Create the word salad by placing words into grid
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
// TODO:
// Check if all words were successfully placed
// Start the game if successful
// error message if some words couldn't be placed
if (placedWords < wordCount)
{
fprintf(stderr, "some words couldn't be placed\n");
exitCode = EXIT_FAILURE;
}
// TODO:
// Start the game if successful
}
else
{
+8 -1
View File
@@ -36,11 +36,18 @@ int main(int argc, char *argv[])
// Create the word salad by placing words into grid
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
// TODO:
// Check if all words were successfully placed
// Start the game if successful
// error message if some words couldn't be placed
if (placedWords < wordCount)
{
fprintf(stderr, "some words couldn't be placed\n");
exitCode = EXIT_FAILURE;
}
// TODO:
// Start the game if successful
}
else
{
Binary file not shown.