Note: The project is currently only made to work on Windows, but can probably be customized to work on other operating systems pretty easily.
Clone repository (with git clone).
Create and activate virutal environment:
python -m venv .venv
.\.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtRun installation file:
python install.pyAdd the created run.bat file as a task in Windows Task Scheduler on every unlock. (TODO: Automate this process)
TODO
Programmet velger ut en kategori ved å trekke en tilfeldig fil fra mappen questions.
Spørsmålene spesifiseres gjennom JSON-formatet. Et eksempelspørsmål finnes under. Flere eksempler ligger i mappen example questions.
{
"type": "image",
"question": "Hvem regisserte filmen Interstellar?",
"resources": [
{
"type": "image",
"path": "./media/interstellar.jpg"
}
],
"acceptedAnswers": ["Christopher Nolan", "Nolan"],
"caseSensitive": false
}- US States (based on map)
- Capitals of the world (based on name of country)
- Which weekday is this date? (Doomsday algorithm)
- Oversettelser av ord på toki pona
- Hvilken kommune er dette (basert på bilde)?