Browse Source

getting input method changed

remotes/origin/Saba
Saba Fazlali 11 months ago
parent
commit
310c40a57a
  1. BIN
      cmake-build-debug/.ninja_deps
  2. 80
      cmake-build-debug/.ninja_log
  3. 4
      cmake-build-debug/Testing/Temporary/LastTest.log
  4. 12
      src/main/c/Hangman/playHangman.c

BIN
cmake-build-debug/.ninja_deps

80
cmake-build-debug/.ninja_log

@ -1,64 +1,22 @@
# ninja log v5 # ninja log v5
0 32 1707224707015552741 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/Test/test_playHangman.c.o c78eb198389ea64b
2 48 1707224297294010118 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/Test/test_drawHangman.c.o b4d90a6b54ad1664
1 40 1707224901227175471 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
1 38 1706122372717341436 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
1 33 1707224901218890256 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/currentState.c.o c4eef1ff589ab182
106 195 1706551302079685763 pmuw_projekt_notebinder fbb48fd3bf0b96c1
1 38 1706122217155672196 CMakeFiles/pmuw_projekt_notebinder.dir/test/Hangman/word_selector_test.c.o e932f546d59a9d76
1 44 1706122039878920765 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Template/game100.c.o 69a5bcd8c57a43b3
1 38 1707224901221200228 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/drawHangman.c.o de5f7edc6c2379d7
1 214 1706706276607365429 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/initializeHangman.c.o 7d64de4520ec9e97
0 213 1706706276607336012 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/word_selector.c.o fab41de4b8cc0421
2 47 1707224297291255019 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/rules.c.o cdaff7b94c55641c
0 42 1707224957969670299 build.ninja f2183aada2fc9ffc
0 34 1707224957969670299 build.ninja f2183aada2fc9ffc 0 34 1707224957969670299 build.ninja f2183aada2fc9ffc
1 29 1707224958003312078 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/initializeHangman.c.o 7d64de4520ec9e97
1 34 1707224958007844146 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
0 32 1707225145761047265 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
1 31 1707225193573982892 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
0 34 1707225362817701877 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
0 45 1707225516452726019 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
1 32 1707225552742056223 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
32 62 1707225552772258606 pmuw_projekt_notebinder a5668107eb06d295
0 32 1707225688396107422 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
0 28 1707225694194160949 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
28 61 1707225694227136765 pmuw_projekt_notebinder a5668107eb06d295
1 238 1707234355675849564 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
1 238 1707234355675849856 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
0 29 1707234367628021438 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
0 32 1707234430533256320 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
0 40 1707234760744162121 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
0 40 1707234760744025123 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
0 44 1707236593330321687 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
0 45 1707236593331008028 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
45 72 1707236593357601081 pmuw_projekt_notebinder a5668107eb06d295
0 44 1707250874478682419 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
44 70 1707250874504270369 pmuw_projekt_notebinder a5668107eb06d295
1 192 1707251949669860983 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/initializeHangman.c.o 7d64de4520ec9e97
1 193 1707251949670799948 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
193 280 1707251949757039868 pmuw_projekt_notebinder a5668107eb06d295
0 52 1707252585783847591 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
52 79 1707252585809772184 pmuw_projekt_notebinder a5668107eb06d295
0 42 1707252794437411200 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
42 71 1707252794465899519 pmuw_projekt_notebinder a5668107eb06d295
0 38 1707252805989111884 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
38 64 1707252806014628850 pmuw_projekt_notebinder a5668107eb06d295
0 40 1707252878137714916 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
40 64 1707252878161423786 pmuw_projekt_notebinder a5668107eb06d295
1 45 1707253160551840215 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
45 71 1707253160577192846 pmuw_projekt_notebinder a5668107eb06d295
1 41 1707253193210670246 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
41 66 1707253193235573958 pmuw_projekt_notebinder a5668107eb06d295
1 37 1707253252737582552 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
38 62 1707253252761716341 pmuw_projekt_notebinder a5668107eb06d295
0 27 1707253441396920863 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/initializeHangman.c.o 7d64de4520ec9e97
0 29 1707253441399178212 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
2 47 1707224297291255019 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/rules.c.o cdaff7b94c55641c
0 213 1706706276607336012 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/word_selector.c.o fab41de4b8cc0421
1 32 1707253996019693702 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/initializeHangman.c.o 7d64de4520ec9e97
1 38 1707224901221200228 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/drawHangman.c.o de5f7edc6c2379d7
1 44 1706122039878920765 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Template/game100.c.o 69a5bcd8c57a43b3
1 38 1706122217155672196 CMakeFiles/pmuw_projekt_notebinder.dir/test/Hangman/word_selector_test.c.o e932f546d59a9d76
200 287 1707259374410346914 pmuw_projekt_notebinder a5668107eb06d295
1 33 1707224901218890256 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/currentState.c.o c4eef1ff589ab182
0 200 1707259374323394998 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
0 32 1707253441401953897 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d 0 32 1707253441401953897 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/main.c.o f1dbf76e6b4bc97d
32 57 1707253441426668233 pmuw_projekt_notebinder a5668107eb06d295
1 40 1707253551600054698 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
40 66 1707253551625723206 pmuw_projekt_notebinder a5668107eb06d295
0 37 1707253577044332311 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
37 62 1707253577068558309 pmuw_projekt_notebinder a5668107eb06d295
0 24 1707253657269506843 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/initializeHangman.c.o 7d64de4520ec9e97
24 47 1707253657292872794 pmuw_projekt_notebinder a5668107eb06d295
2 48 1707224297294010118 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/Test/test_drawHangman.c.o b4d90a6b54ad1664
0 32 1707224707015552741 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/Test/test_playHangman.c.o c78eb198389ea64b
0 39 1707259391450177836 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
39 64 1707259391474674538 pmuw_projekt_notebinder a5668107eb06d295
1 202 1707259792405928951 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
202 292 1707259792495398099 pmuw_projekt_notebinder a5668107eb06d295
0 41 1707259974595310062 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
41 68 1707259974621052571 pmuw_projekt_notebinder a5668107eb06d295
0 41 1707260143202490285 CMakeFiles/pmuw_projekt_notebinder.dir/src/main/c/Hangman/playHangman.c.o f2e2af7048638ee6
41 66 1707260143227530868 pmuw_projekt_notebinder a5668107eb06d295

4
cmake-build-debug/Testing/Temporary/LastTest.log

@ -1,3 +1,3 @@
Start testing: Feb 06 22:07 CET
Start testing: Feb 06 23:55 CET
---------------------------------------------------------- ----------------------------------------------------------
End testing: Feb 06 22:07 CET
End testing: Feb 06 23:55 CET

12
src/main/c/Hangman/playHangman.c

@ -42,18 +42,18 @@ void playHangman(char *wordToGuess) {
char guessedLetters[30]; //Guessed letters char guessedLetters[30]; //Guessed letters
char currentGuess[50]; //Current state of the guessed word char currentGuess[50]; //Current state of the guessed word
displayRules();
// Initialize the current guess and print the rules // Initialize the current guess and print the rules
initializeHangman(wordToGuess, currentGuess); initializeHangman(wordToGuess, currentGuess);
displayRules();
currentState(currentGuess, mistakes);
while (mistakes < MAX_MISTAKES) { while (mistakes < MAX_MISTAKES) {
currentState(currentGuess, mistakes);
// Get a letter from the user // Get a letter from the user
char guess;
char input[20];
printf("Enter your guess: \n"); printf("Enter your guess: \n");
guess = getSingleCharInput();
scanf("%s", input);
// Check if a valid character is entered // Check if a valid character is entered
if (guess == '\0') { if (guess == '\0') {
@ -117,4 +117,4 @@ void playHangman(char *wordToGuess) {
printf("Oops! You have no more guesses :( \n The answer was: %s \n", wordToGuess); printf("Oops! You have no more guesses :( \n The answer was: %s \n", wordToGuess);
} }
} }
}
}
Loading…
Cancel
Save