Browse Source

million game - testing full 15 questions range

main
fdlt3917 2 years ago
parent
commit
4c2b83bf9d
  1. 26
      src/main/quizproject.c
  2. 2
      src/main/quizproject.h

26
src/main/quizproject.c

@ -659,11 +659,23 @@ void play_milliongame() {
int million_i = 0, million_k = 0;; int million_i = 0, million_k = 0;;
char million_user_answers[round]; char million_user_answers[round];
char million_std_answers[round] = {'B', 'A', 'A'};
char million_std_answers[round] = {'B', 'A', 'A','B', 'A', 'A','B', 'A', 'A','B', 'A', 'A','B', 'A', 'A'};
int million_stay_in_game = 0, million_reward = 0; int million_stay_in_game = 0, million_reward = 0;
int million_lifeline_hint = 1, million_lifeline_delete = 1; int million_lifeline_hint = 1, million_lifeline_delete = 1;
char questions[round][256] = { char questions[round][256] = {
"What is the capital of France?",
"Who was the first president of the United States?",
"Which team won the most NBA championships?",
"What is the capital of France?",
"Who was the first president of the United States?",
"Which team won the most NBA championships?",
"What is the capital of France?",
"Who was the first president of the United States?",
"Which team won the most NBA championships?",
"What is the capital of France?",
"Who was the first president of the United States?",
"Which team won the most NBA championships?",
"What is the capital of France?", "What is the capital of France?",
"Who was the first president of the United States?", "Who was the first president of the United States?",
"Which team won the most NBA championships?" "Which team won the most NBA championships?"
@ -672,6 +684,18 @@ void play_milliongame() {
{ "A) Berlin", "B) Paris", "C) London", "D) Rome" }, { "A) Berlin", "B) Paris", "C) London", "D) Rome" },
{ "A) George Washington", "B) John Adams", "C) Thomas Jefferson", "D) James Madison" }, { "A) George Washington", "B) John Adams", "C) Thomas Jefferson", "D) James Madison" },
{ "A) Los Angeles Lakers", "B) Chicago Bulls", "C) Golden State Warriors", "D) Boston Celtics" }, { "A) Los Angeles Lakers", "B) Chicago Bulls", "C) Golden State Warriors", "D) Boston Celtics" },
{ "A) Berlin", "B) Paris", "C) London", "D) Rome" },
{ "A) George Washington", "B) John Adams", "C) Thomas Jefferson", "D) James Madison" },
{ "A) Los Angeles Lakers", "B) Chicago Bulls", "C) Golden State Warriors", "D) Boston Celtics" },
{ "A) Berlin", "B) Paris", "C) London", "D) Rome" },
{ "A) George Washington", "B) John Adams", "C) Thomas Jefferson", "D) James Madison" },
{ "A) Los Angeles Lakers", "B) Chicago Bulls", "C) Golden State Warriors", "D) Boston Celtics" },
{ "A) Berlin", "B) Paris", "C) London", "D) Rome" },
{ "A) George Washington", "B) John Adams", "C) Thomas Jefferson", "D) James Madison" },
{ "A) Los Angeles Lakers", "B) Chicago Bulls", "C) Golden State Warriors", "D) Boston Celtics" },
{ "A) Berlin", "B) Paris", "C) London", "D) Rome" },
{ "A) George Washington", "B) John Adams", "C) Thomas Jefferson", "D) James Madison" },
{ "A) Los Angeles Lakers", "B) Chicago Bulls", "C) Golden State Warriors", "D) Boston Celtics" }
}; };
while(million_i < round && million_stay_in_game == 0){ while(million_i < round && million_stay_in_game == 0){

2
src/main/quizproject.h

@ -56,7 +56,7 @@ void B_show_time(void);
int B_testround(void); int B_testround(void);
#define NUM_QUESTIONS 5 #define NUM_QUESTIONS 5
#define round 3
#define round 15
#define MAX_LIVES 10 #define MAX_LIVES 10
#define MAX_WORD_LENGTH 20 #define MAX_WORD_LENGTH 20

Loading…
Cancel
Save