A simple Wikipedia-based trivia game made primarily with Javascript and Python.
In a game of Disambiguation, the player is presented with a summary of a randomly chosen Wikipedia article, and must identify the title of the said article amongst the four given choices. The time limit is set to 30 seconds by default, but can be changed to 5, 10 or 60 seconds beforehand. Each question is worth one point; a correct answer adds 5 seconds to the clock while an incorrect one will take away 3 seconds. The score, along with a related fun fact, will be displayed at the end of the game.
The graphics and the code are written in JavaScript using p5.js; the data needed for the gameplay are collected from Wikipedia and stored in a database using a Python program.
- All Wikipedia article summaries are gathered from Wikipedia, the free encyclopedia. This is done by screenscraping using a Python program via the
wikipediaAPI (See the Database generation folder). - Fun facts displayed at the end of the game are also written mostly based on Wikipedia articles.
- The list of stop words (
StopWords.py) is adapted from this list.