From 717a2720ba37fdb269914ce1c15869b3559e4ad3 Mon Sep 17 00:00:00 2001 From: pvtrx Date: Mon, 13 Oct 2025 16:39:32 +0200 Subject: [PATCH] Added specific ToDo comment --- .vscode/c_cpp_properties.json | 19 +++++++++++++++++++ Start_Windows/game.c | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 .vscode/c_cpp_properties.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..c116247 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,19 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "cStandard": "c17", + "cppStandard": "gnu++17", + "intelliSenseMode": "windows-gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/Start_Windows/game.c b/Start_Windows/game.c index d8cc133..80cf062 100644 --- a/Start_Windows/game.c +++ b/Start_Windows/game.c @@ -6,6 +6,7 @@ #define MAX_RAND_TRIES_PER_WORD 10 #define EMPTY_CHAR 0 +using ganzzahl = int; //TODO: Spiellogik implementieren: /* * Wörter aus der Wortliste zufällig horizontal oder vertikal platzieren * restliche Felder mit zufälligen Buchstaben füllen */ @@ -13,6 +14,8 @@ // Creates the word salad by placing words randomly and filling empty spaces int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount) { + /* TODO: Implement Game Logic: Place words from the array char words[][MAX_WORD_LEN] randomly horizontally and vertivally + and fill empty spaces with random letters. Only cross words when the overlaping cell contains the same letter in both words. */ }