Main ausgefüllt
This commit is contained in:
parent
7c06c399c6
commit
0a8ed9bdfe
@ -38,9 +38,24 @@ int main(int argc, char *argv[])
|
||||
|
||||
// TODO:
|
||||
// Check if all words were successfully placed
|
||||
if(wordCount == placedWords)
|
||||
{
|
||||
exitCode = EXIT_SUCCESS;
|
||||
}
|
||||
else
|
||||
{
|
||||
exitCode = EXIT_FAILIURE;
|
||||
}
|
||||
// Start the game if successful
|
||||
if(exitCode == EXIT_SUCCESS)
|
||||
{
|
||||
void startGame(const char wordSalad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldSize, char words[][MAX_WORD_LEN], unsigned int numberOfWords, unsigned int windowWidth);
|
||||
}
|
||||
// error message if some words couldn't be placed
|
||||
|
||||
else if(exitCode == EXIT_FAILURE)
|
||||
{
|
||||
printf("Bei der Platzierung ist etwas falsch gelaufen!");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user