Skip to content

A quiz game based on who wants to be a millionaire/KBC kon Banega Crorepati using HTML, CSS, Javascript

Notifications You must be signed in to change notification settings

Deepika-Garg/BecomeMillionaire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Who wants to be a Millionaire Quiz

Live site

Who wants to be Millionaire Responsive image

Table of content

  1. Planning
  2. Design
  3. Existing Features
  4. Future Features
  5. Technologies Used
  6. Final Design
  7. Deployment
  8. Testing
  9. Credit

Planning

Become Millionaire game app is design is influenced by actual famous game "Who wants to be a Millionaire". Same concept and theme is being try to recreate but with some convenient steps. Game has questions and four answer options, two lifelines and a progress ladder to highlight the winning score. Rules button and some message will be shown on screen when require. Some visual hover effects and sounds have been added to make the game more engaging and interesting. Questions are based on general knowledge so any one can play it and enjoy it.

Back to top

Target Audiences

Actual plan was created a JavaScript question game but later on it was changed to general questions so that anyone can play and enjoy the game. Winning money factor has been added to motivate the user to play and win more money.

Back to top

User Experience (UX)

User Stories:

User

  • As a user I want to be able to play a fun and engaging game.
  • As a user I want to test my general Knowledge about the world.
  • As a user I want to intuitively navigate the site without confusion.
  • As a user I want to be able to see a running score/prize money as the game progresses.
  • As a user I want to see my final winning amount when I have completed the quiz.
  • As a user I want to see if any help/hint available for me to complete the quiz and win as much as possible.

Quiz site Owner

  • As the site owner I want to offer a Welcome Page.
  • As the site owner I want to provide a fun and engaging quiz for the user.
  • As the site owner I want the user to be able to replay the game multiple times.
  • As the site owner I want to questions to appear randomly and different for the same level to make it more engaging.

Scope Plane

  • The website should have a link to the home page visible at all times so the user can reset the quiz without using browser navigation buttons.
  • The website should have a welcome message for the user that concisely describes the purpose of the site.
  • The website should be visually appealing to the user and be styled in a way that is relevant to the Who wants to be millionaire theme.
  • The website should keep a running total of the user's winning amount and display this to them in the progress ladder on the right.
  • The website should let the user know whether they have selected the correct answer or not.
  • Game should finish once user give the wrong answer.
  • Every time the user gives wrong answer and game finishes, they must have choice to start the game again.

Back to top

Structure Plane

(This is a single page game, with a welcome Page and 404 page. Messages are shown on click of buttons in form of Modal and are hidden or displayed via display: flex/none css)

  • Site logo/title

Home Page

  • Welcome message to the user.
  • Site Logo
  • Start Quiz button to start the game
  • Rules button to explain the games rules to user/player

Quiz page

  • Home button will take user to Welcome page.
  • On click of Rules button on the page a modal appears and briefly describes quiz.
  • Different sounds has been added for the right and wrong answer and sound button can be used to toggle on/off the sound.
  • Who wants to be a millionaire logo/image for aesthetic.
  • Randomly generated question with four answer buttons(with hover effect) to select from.
  • Progress ladder/bar on the right to show the winning amount.
  • Lifeline 50-50 to help the user for answer the questions. it will remove 2 wrong answers.
  • Lifeline Audience Poll will highlight the right answer in green colour.

End game Modal/Pop-up

  • popups will appear if the wrong answer selected to 'Start again' button to encourage user to restart the game. Exit Game button will redirect the user to Welcome Page.
  • Modal will show your winning amount with a congratulations message.

Lifeline used Modal

  • It shows the message lifeline has already been used, if user try to take it's help more than once.

404 Page

  • 404 Page with the logo.
  • Error Message.
  • Return to home button to go back to the Welcome Page/Home Page

Back to top

Wireframes:

HomePage: HomePage wireframe

QuizPage: Quiz wireframes

404ErrorPage: 404 wireframes

Back to top

Surface plane

Colour Scheme

Very less colours are used so that quiz looks neat and tidy. Color Adobe is used to create the color pallete. contrast of color is good. Only first two colors purple and white is used as site colors. Red and Green color is used to highlight the wrong and right answers respectively and Golden color is used to show the progress.

Colors Pallete

Back to top

Typography

Font for the quiz is used 'Segoe UI'. Different font size is being used between question and answers to differentiate but same font.

Back to top

Imagery

In total only three images are used in the quiz. One for logo and favicon and two images of phone and audience for two life lines respectively.

Image Sources
WhoWantsToBeMillionaireLogo

AudiancePoll

Fifty-Fifty

Back to top

Existing Features

Favicon

  • Title/logo Logo

Home Page Feature

  • Start Quiz button start Quiz screenshot
  • Rules Explained Modal is used to describe the rules of the game on the click of rules button on the top of page.

Rules screenshot

Quiz Page Feature

Home Button

  • Home Button Home button will take you to the welcome screen page, in case anybody wants to go. Home Button screenshot
  • Rules Button Same rule button is given on quiz page as well for convenience.

Sound/Audio

  • Sound On/Off Button

Correct answer and wrong answer sound has been added, which can be which can be toggle on and off by the user for their preference.

Sound On screenshot

Sound Off screenshot

Quiz

  • Quiz questions and answers

Questions are pulled from the defined list of 12 sets with 3 questions in each set.

Answer buttons highlight when hovered over (large devices) to create positive UX.

Quiz screenshot

Back to top

Progress Bar

Score/Prize Money increments with every correct answer.

ProgressBar screenshot

After user has selected an answer, if the answer is correct then new question appear and progress bar get updated as in previous image. If the answer is wrong then selected answer get highlighted with red color and right answer with green color. screen freeze and this is end of game.

wrong Answer screenshot

Just after 1 second a modal appears and indicate Game End. It shows the prize money, congratulate the player and give option to play again.

Alert screenshot

Back to top

Lifelines

There are 2 lifelines are provided to help player, called '50:50' and 'Audience'. These will help user to figure out the right answer and win maximum money they can.

Lifelines screenshot

Lifeline Fifty-Fifty On click of '50:50' two actions occur.

  1. Two random wrong answers get deleted and player is left with only 2 choices to select from including the right one. It makes game easy for player.

Removed wrong options screenshot

  1. Button itself get faded to indicate that it is used.

Faded '50:50' screenshot

Lifeline AudiencePoll On click of 'AudiencePoll' lifeline two actions occur.

  1. Right answer will get highlight with 'Green' color.

Highlight Right option screenshot

  1. Button itself get faded to indicate that it is used.

Faded 'AudiencePoll' screenshot

  1. If you try to use any of the lifeline again during the same game. It shows a message "Lifelines can be used only once".

Lifeline alert message screenshot

404 Page features

  • Logo
  • OOps... Message
  • Return to home button

Back to top

Future Features

Quiz Page

  • I would like to include some sort of animation when user win £1,000,000.
  • I want to add the third lifeline Phone a Friend like actual original game.
  • I would learn and add keyboard Navigation for my quiz.

Languages used

  • HTML5
  • CSS3
  • JavaScript

Technology

Balsamiq - Used to create wireframes.

Github - To save and store the files for the website.

Google Fonts - To import the fonts used on the website.

Font Awesome - For the iconography on the website.

Bootstrap Version 5 - The framework for the website. Code for the navigation bar, carousel, cards and form were used and modified. Additional CSS styling was also implemented in style.css.

Favicon.io To create favicon.

Color Adobe To create the color pallete

Convertio - To covert MP4 sound to MP3 sound.

Am I Responsive? To show the website image on a range of devices.

Webaim To test accesibility of the deployed website.

Google Dev Tools - To troubleshoot and test features, solve issues with responsiveness and styling. Visual Studio Code is used as an editor to write code.

Back to top

Final Design

Home Page

am I responsive Home Page screenshot

Quiz Page

am I responsive Quiz Page screenshot

404 Page

am I responsive 404 Page screenshot

Back to top

Deployment

The steps to deploy the project are as follows:

  1. Click on Settings on the navigation menu in the repository
  2. Selected the Pages menu on the left side bar.
  3. In the first dropdown menu labelled Source select the branch of the name 'main' from the dropdown.
  4. In the next dropdown menu select '/root' as the default option.
  5. Select Save
  6. After couple of minutes project become live

screenshot of correct settings on Github

  1. If you want your own custom domain name you would have to purchase one with an external provider and enter it in the box towards the bottom of the page above.

How to Clone

To clone the repository:

  1. Log in (or sign up) to GitHub.

  2. Go to the repository for this project, Deepika-Garg/BecomeMillionaire

  3. Click on the code button, select whether you would like to clone with HTTPS, SSH or GitHub CLI and copy the link shown. Clone screenshot

  4. In your IDE of choice, open 'Git Bash'.

  5. Change the current working directory to the location where you want the cloned directory to be made.

  6. Type 'git clone' into the terminal and then paste the link you copied in step 3. Press enter.

Back to top

Testing

I tested my site throughout the entire build. I have gone through each page using google chrome developer tools to ensure that each page is responsive on different screen sizes and devices and troubleshoot any issues mentioned in console as I went along.

Please refer to Test Document for all information to test BecomeMillionaire quiz app.

Back to top

Credits

Images sources:

Back to top

Tutorials:

Back to top

Content and Resources:

Back to top

Acknowledgments:

I would like to thank following people for the help and advice they have given me in this project.

  • My mentor Precious Ijege for his guidance and feedback throughout this milestone project.
  • Marco Tot our class cohort facilitator for his constant assistance and encouragement.
  • Slack Community for their endless support.
  • Code institute for the outstanding course documentation and for providing opportunity to learn and develop this project.

Back to top

About

A quiz game based on who wants to be a millionaire/KBC kon Banega Crorepati using HTML, CSS, Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors