copied files to windows/linux
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
// Read words from file and store in 'words' array
|
||||
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||
{
|
||||
char lines [(MAX_WORD_LEN + 2) * maxWordCount]; //Es wird davon ausgegangen, dass die Wörter nur durch eine Trennzeichen und ein Leerzeichen von einander gertrennt gespeichert werden
|
||||
char lines [MAX_LINE_LEN];
|
||||
int word_counter = 0;
|
||||
|
||||
while (fgets(lines, sizeof(lines) , file) != NULL)
|
||||
|
||||
@@ -36,12 +36,11 @@ 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
|
||||
if(placedWords == wordCount)
|
||||
{
|
||||
printf("Eingabe war erfolgreich!\nDas Spiel beginnt:");
|
||||
void startGame(wordSalad, searchFieldSize, words, numberOfWords, windowSize);
|
||||
startGame(wordSalad, SALAD_SIZE, words, wordCount, SALAD_SIZE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user