set up graphical game
This commit is contained in:
parent
cbf806ae1b
commit
4ba1251b56
@ -38,23 +38,17 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Check if all words were successfully placed
|
// Check if all words were successfully placed
|
||||||
// error message if some words couldn't be placed
|
// error message if some words couldn't be placed
|
||||||
|
|
||||||
printf("placed words: %d\n", placedWords);
|
|
||||||
printf("word count: %d\n", wordCount);
|
|
||||||
|
|
||||||
if (placedWords < wordCount)
|
if (placedWords < wordCount)
|
||||||
{
|
{
|
||||||
int notPlacedNum = wordCount - placedWords;
|
int notPlacedNum = wordCount - placedWords;
|
||||||
fprintf(stderr, "%d word(s) couldn't be placed\n", notPlacedNum);
|
fprintf(stderr, "%d word(s) couldn't be placed\n", notPlacedNum);
|
||||||
|
exitCode = EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO:
|
// Start the game if all words were successfully placed
|
||||||
// correct parameters for startGame
|
else
|
||||||
|
|
||||||
// Start the game if at least 1 word has been successfully placed
|
|
||||||
else if (placedWords >= 1)
|
|
||||||
{
|
{
|
||||||
startGame(wordSalad, 80, words, placedWords, 800);
|
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user