|
|
@ -506,6 +506,23 @@ void play_milliongame() { |
|
|
|
// code for game 3 goes here |
|
|
|
} |
|
|
|
|
|
|
|
void v_guessingGame(void){ |
|
|
|
|
|
|
|
printf("Guess the Number!\n"); |
|
|
|
printf("I am thinking of a number between 1 and 100. Can you guess what it is?\n"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void play_guessingGame() { |
|
|
|
printf("**********************\n"); |
|
|
|
printf("Playing Guessing Game!\n"); |
|
|
|
printf("**********************\n"); |
|
|
|
v_guessingGame(); |
|
|
|
printf("****************************************\n"); |
|
|
|
printf("Thank you for playing the Guessing Game!\n"); |
|
|
|
printf("****************************************\n"); |
|
|
|
} |
|
|
|
|
|
|
|
void feedbackForm(void){ |
|
|
|
int rating; |
|
|
|
char feedback[1000]; |
|
|
@ -566,7 +583,8 @@ int main() { |
|
|
|
printf("1. QuizGame\n"); |
|
|
|
printf("2. Fact or Lie?\n"); |
|
|
|
printf("3. Who wants to be a millionaire\n"); |
|
|
|
printf("4. Exit\n"); |
|
|
|
printf("4. Guess the Number!\n"); |
|
|
|
printf("5. Exit\n"); |
|
|
|
printf("Enter your choice: "); |
|
|
|
scanf("%d", &choice); |
|
|
|
|
|
|
@ -584,6 +602,10 @@ int main() { |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
play_guessingGame(); |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
printf("\nThank you for trying our C code!\n"); |
|
|
|
break; |
|
|
|
default: |
|
|
|