Compare commits

..

No commits in common. "27eafd14cc011e7ed9230b8f89747f2469648db9" and "6244fad3d49b58bcd648bcbd63968a20b28008f4" have entirely different histories.

4 changed files with 7 additions and 23 deletions

2
.gitignore vendored
View File

@ -5,5 +5,3 @@ runTests
main.o main.o
graphicalGame.o graphicalGame.o
wordsalad wordsalad
wordsalad_initial.exe
runTests.exe

View File

@ -36,18 +36,11 @@ int main(int argc, char *argv[])
// Create the word salad by placing words into grid // Create the word salad by placing words into grid
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount); placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
// TODO:
// Check if all words were successfully placed // Check if all words were successfully placed
// Start the game if successful // Start the game if successful
// error message if some words couldn't be placed // 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 else
{ {

View File

@ -36,18 +36,11 @@ int main(int argc, char *argv[])
// Create the word salad by placing words into grid // Create the word salad by placing words into grid
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount); placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
// TODO:
// Check if all words were successfully placed // Check if all words were successfully placed
// Start the game if successful // Start the game if successful
// error message if some words couldn't be placed // 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 else
{ {

Binary file not shown.