-
Notifications
You must be signed in to change notification settings - Fork 0
/
naive.cpp
73 lines (72 loc) · 1.51 KB
/
naive.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include "natures.h"
void naiveQuestions() {
switch(questionNum()) {
case 1:
printf("Do you like groan-inducing puns?\n\n"
"1) Love them!\n"
"2) A little.\n"
"3) Spare me...\n");
switch(player.answer == cin.get()) {
case 1:
player.impish += 1;
player.naive += 3;
totalQuestionNumChecker();
break;
case 2:
player.jolly += 2;
totalQuestionNumChecker();
break;
case 3:
player.sassy += 2;
totalQuestionNumChecker();
break;
}
case 2:
printf("Do you tend to laugh a lot?\n\n"
"1) Yes.\n"
"2) No.\n");
switch(player.answer == cin.get()) {
case 1:
player.docile += 1;
player.naive += 2;
totalQuestionNumChecker();
break;
case 2:
player.quirky += 2;
totalQuestionNumChecker();
break;
}
case 3:
printf("Do others often call you childish?\n\n"
"1) Yes.\n"
"2) No.\n");
switch(player.answer == cin.get()) {
case 1:
player.jolly += 1;
player.naive += 2;
totalQuestionNumChecker();
break;
case 2:
player.calm += 2;
totalQuestionNumChecker();
break;
}
case 4:
printf("Do you like to imagine things for your amusement?\n\n"
"1) Yes.\n"
"2) No.\n");
switch(player.answer == cin.get()) {
case 1:
player.naive += 2;
totalQuestionNumChecker();
break;
case 2:
player.hasty += 2;
totalQuestionNumChecker();
break;
}
default:
printf("Please enter a valid answer...\n\n");
naiveQuestions();
}
}