generated from freudenreichan/info2Praktikum-Wortsalat
changed numbers to variable
This commit is contained in:
1 parent
3b6914dc8e
commit
ab3d269759
1 file changed
+2
-2
+2
-2
@@ -41,9 +41,9 @@ int main(int argc, char *argv[])
|
|||||||
// 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(wordCount > 19)
|
if(wordCount >= SALAD_SIZE)
|
||||||
{
|
{
|
||||||
if(placedWords != 20)
|
if(placedWords != SALAD_SIZE)
|
||||||
{
|
{
|
||||||
exitCode = EXIT_FAILURE;
|
exitCode = EXIT_FAILURE;
|
||||||
printf("Only %d of %d possible words could be placed\n", placedWords, 20);
|
printf("Only %d of %d possible words could be placed\n", placedWords, 20);
|
||||||
|
|||||||
Reference in new issue
Block a user