|
|
@ -1229,7 +1229,7 @@ void v_factorlie(void){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void play_factorlie() { |
|
|
|
void v_play_factorlie() { |
|
|
|
printf("**********************\n"); |
|
|
|
printf("Playing Fact or Lie!\n"); |
|
|
|
printf("**********************\n"); |
|
|
@ -1460,7 +1460,7 @@ void play_milliongame() { |
|
|
|
// code for game 3 goes here |
|
|
|
} |
|
|
|
|
|
|
|
void v_guessingGame(void){ |
|
|
|
void v_guessTheNumber(void){ |
|
|
|
int secret_number, guess; |
|
|
|
srand(time(NULL)); |
|
|
|
secret_number = rand() % 100 + 1; |
|
|
@ -1480,11 +1480,11 @@ void v_guessingGame(void){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void play_guessingGame() { |
|
|
|
void v_play_guessTheNumber() { |
|
|
|
printf("*************************\n"); |
|
|
|
printf("Playing Guess the Number!\n"); |
|
|
|
printf("*************************\n\n"); |
|
|
|
v_guessingGame(); |
|
|
|
v_guessTheNumber(); |
|
|
|
printf("****************************************\n"); |
|
|
|
printf("Thank you for playing Guess the Number!\n"); |
|
|
|
printf("****************************************\n"); |
|
|
@ -1502,7 +1502,7 @@ void v_guessTheWord(char word[], char guessed[]) { |
|
|
|
printf("\n"); |
|
|
|
} |
|
|
|
|
|
|
|
void play_guessTheWord() { |
|
|
|
void v_play_guessTheWord() { |
|
|
|
char word[] = "Fulda"; |
|
|
|
char guessed[MAX_WORD_LENGTH] = {0}; |
|
|
|
int lives = MAX_LIVES; |
|
|
@ -3269,7 +3269,7 @@ int main(int argc, char *argv[]) { |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
play_factorlie(); |
|
|
|
v_play_factorlie(); |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 3: |
|
|
@ -3277,11 +3277,11 @@ int main(int argc, char *argv[]) { |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
play_guessingGame(); |
|
|
|
v_play_guessTheNumber(); |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
play_guessTheWord(); |
|
|
|
v_play_guessTheWord(); |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 6: |
|
|
@ -3352,7 +3352,7 @@ int main(int argc, char *argv[]) { |
|
|
|
} |
|
|
|
if (jump_to_menu) { |
|
|
|
jump_to_menu = 0; |
|
|
|
printf("\nType any key and press enter to jump back to the menu.\n"); |
|
|
|
printf("\nType any key and press enter to jump back to the Main Menu.\n"); |
|
|
|
char jump_key; |
|
|
|
scanf(" %c", &jump_key); |
|
|
|
jump_key = toupper(jump_key); |
|
|
|