Git Product home page Git Product logo

wasim-eb-quiz-game_aprresub's Introduction

Gladiator Quiz Game

This website is produced to test your knowledge about the movie “Gladiator”. The website contains a quiz and is daily simple. The game comes with a set five questions and three answers per question.

Here is a link to the website: Wasims quizgame

Page

The website only contains one page, which is the Home page. The game is all build in a single window at the center of the page. This window contains different phases in the game:

  • The start game window
  • The question phase
  • The high scores

Technologies Used

I have used several technologies that have enabled this design to work:

  • HTML
    • Used as the basic building block for the project and to structure the content.
  • CSS
    • Used to style all the web content across the project.
  • JavaScript
    • Used for the responsive navbar, animated heading, quiz functionality & sound effects and high-scores leaderboard.
  • Google Developer Tools
    • Used as a primary method of fixing spacing issues, finding bugs, and testing responsiveness across the project.
  • GitHub
    • Used to store code for the project after being pushed.
  • Git
    • Used for version control by utilising the Gitpod terminal to commit to Git and Push to GitHub.
  • Gitpod
    • Used as the development environment.
  • Color Contrast Accessibility Validator
    • Allowed me to test the colour contrast of my webpage.
  • W3C Markup Validation Service
    • Used to validate all HTML code written and used in this webpage.
  • W3C CSS Validation Service
    • Used to validate all CSS code written and used in this webpage.
  • AmIResponsive
    • Used to generate responsive image used in README file.

Features:

  • A button to start the game
  • Questions tab
  • Answers tab, showing three possible answers.
  • A button to submit your answer
  • Scores at the end of the quiz
  • Highscore feature
  • Hidden timer that calculates the final score by combining the time elapsed with the correct answers
  • I wanted the game to have a very simple design as I'm usually very fond of the simplistic approach.

  • As part of the quiz design, I added visual stat count so that the user will know when they have answered a question correctly and the number of questions inside the quiz. This instant feedback will allow them to learn as they play the quiz. The game has four major features. I have provided screenshots to showcase the desktop version and also the mobile version:

  • The start game stage: stargame-desk stargame-mobile

  • The questions-stage: questions-desk questions-mobile

  • The player-form playerform-desk playerform-mobile

  • The scoreboard scoreboard-desk scoreboard-mobile

Pages:

There is only one page for this simple quiz-game.

Testing

  • I am happy to confirm that the website is very responsive on different browsers, such as Google Chrome (which I used to type the code), Mozilla Firefox and Internet Explorer.
  • The website was also tested live on a Samsung Galaxy 10 and iPhone 12 with great success.
  • Finally, I tested the webpage on the Responsive Design platform, also with great success.
  • The website works well in function and in looks. Throughout the entire project, I have used Google Chrome Developer Tools to debug any issues with styling and alignment; this tool enabled me to change things and see the effect this had immediately. The use of the console whilst in dev tools was also incredibly helpful as I was able to utilise this to test my JavaScript code, using console.log() to check that my functions were being called correctly and that the desired information was going to be displayed. This was pivotal in designing the quiz as I needed to have access to the information of the various elements in order to be able to programme the quiz correctly.

Bugs

Encountered an error when typing in the questions in the javascript. 'Maximus didn’t want it' was causing me problems because of the extra ‘’ ‘ ‘’, was disturbing the code . I fixed this problem by changing the sentence into ‘Maximus did not want it’. I later realised that this issue can also be resolved by adding a single dot to the sentence, that way it won’t interfere with the code.

Validator testing:

  • The end result shows no errors in the HTML code. Check the results here: W3C Validator HTML-VALIDATOR

  • The CSS code is is also validated. Check the results here: Jigsaw Validator CSS-VALIDATOR

  • I used BeatifyTools to validate the javaScript code and it returned no errors. JAVASCRIPT-VALIDATOR

  • No errors were found neither in the HTML nor the CSS code.

  • I used lighthouse in the dev tools in Google Chrome to confirm the accessibilty on both mobile devices and desktops.

LIGHTHOUSE-DESKTOP LIGHTHOUSE-MOBILE

Unfixed bugs

As of right now, there are no unfixed bugs.

Potential future features

  • I want to make the game broader by adding more quizzes for different movies.
  • The user should also be able to navigate between the different quizzes.

Deployment

I deployed this website by using GitPages and following the below steps:

GitHub pages deployment

  1. Log in to GitHub
  2. In your Repository section, select the project repository that you want to deploy
  3. In the menu located at the top of this section, click 'Settings'
  4. Select 'Pages' on the left-hand menu - this is around halfway down
  5. In the source section, select branch 'Master' and save
  6. The page is then given a site URL which you will see above the source section, it will look like the following:

Please note it can take a while for this link to become fully active.

Forking the GitHub Repository

If you want to make changes to your repository without affecting it, you can make a copy of it by 'Forking' it. This ensures your original repository remains unchanged.

  1. Find the relevant GitHub repository
  2. In the top right corner of the page, click the Fork button (under your account)
  3. Your repository has now been 'Forked' and you have a copy to work on

Cloning the GitHub Repository

Cloning your repository will allow you to download a local version of the repository to be worked on. Cloning can also be a great way to backup your work.

  1. Find the relevant GitHub repository
  2. Press the arrow on the Code button
  3. Copy the link that is shown in the drop-down
  4. Now open Gitpod & select the directory location where you would like the clone created
  5. In the terminal type 'git clone' & then paste the link you copied in GitHub
  6. Press enter and your local clone will be created.

Credits

Lots of appreciation and a big thank you to my mentor at Code institute for providing the necessary help to finish this project.

Coding content

  • Most of my coding was used by myself and various youtube guides on javaScript.
  • I used W3Schools as my main source for codes. I also had to make a lot of google searching for the javaScript content.
  • I had to go back a few times and look at older coding from my previous project and I also used some codes from the Love Maths project.

wasim-eb-quiz-game_aprresub's People

Contributors

wasim-eb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.