CSE 111 - Fall 2002

Lab #10 - Who Wants to Be A Millionaire?

 

Background

For this lab, you will build an implementation of the hit game show.  Regis is gone, but the game lives on - in JavaScript!  The game begins with the user being asked a question and given four possible choices.  The user should then select an answer that they believe is correct.  If they are correct, they move on to the next question and next level of money.  If the user answers all the questions correctly, they win $1,000,000.  The user can also choose to stop the game at any time.  If they do so, they win the amount of money equivalent to the last question they asked correctly.  The list below shows the progression of money through the questions.  If the user answers a question incorrectly, they go back down to the last money prize level.  For example, if they answer the $500 question incorrectly, they win only $100.  Once the player gets to $1000, they are guaranteed to win $1000, and once the player has reached $64,000, they are guaranteed to win $64,000.

For your implementation, the questions can remain the same each time the game is played.  So your first task is to come up with the 14 questions and possible answers.  You can choose whether or not to give the correct answer if the user is wrong.

Money values for Questions

Extra Credit

For additional credit, you can implement random questions, so that the questions are different each time the game is played.  Also, you can implement two of the three lifelines that are included in the original show.  Lifelines are bonuses that the player has to help them answer the question.  The first lifeline is the 50-50.  If the user selects to use the 50-50, which can only happen once per game, two of the incorrect answers are eliminated, leaving the correct answer and one incorrect answer as choices to the user.  The other lifeline that can be implemented is the "Phone a friend", or in this case, "Ask Google".  If the user selects this option, again only once per game, a webpage opens up that is the results of Google (or search engine of your choice) searching for the keywords in the question so the user can go to the page and hope to find the answer. 

Sample Interaction

Below is a sample interaction that you may use as a guide for how to implement the game.