Ye olde Pub Quiz
Goal
The goal of this individual course work was to implement an existing API and use it to create an interactive single page website. The interactivity is provided by the use of jQuery.
The basic requirements were to build a simple question and answer game with money rewards per question, using only the four-answers questions and not the two-answers ones. Everything beyond this were extras, that I implemented to enhance the game and increase the feel of a complete game.
Functionalities
To start the game, the user enters a username to join the game.
At the beginning of each game, the user has three lives, one 50-50 joker and one time-refresh joker. A life is lost, when a wrong answer was given or when the timer runs out.
The 50-50 joker can only be used on a question with four answers and hides two wrong answers to help the player. The time-refresh joker fills up the timer. Once a joker was used, it is grayed out and can not be used anymore for the duration of the game.
Each question gives a money reward, which is added up throughout the duration of the game. If a player ends the game by clicking on the end-game button or outplays the game until the end, the whole amount is stored. If a user loses a game, the winning amount depends on the number of right answers that were given.
All scores are stored in a leaderboard and can be viewed by clicking the Home-button.
The new-game button starts a new game, without keeping the score or transfering the money.
Date: 24th Feburary to 5th March 2018
Course Work
Category: Website Development, Use of API, jQuery