https://github.com/guidanoli/kahoot-helper
Helper Python Script for Making Kahoots
https://github.com/guidanoli/kahoot-helper
Last synced: 7 months ago
JSON representation
Helper Python Script for Making Kahoots
- Host: GitHub
- URL: https://github.com/guidanoli/kahoot-helper
- Owner: guidanoli
- License: gpl-3.0
- Created: 2022-11-17T23:21:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T01:06:23.000Z (over 2 years ago)
- Last Synced: 2025-01-17T13:29:10.849Z (9 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Helper Python Script for Making Kahoots
This script is aimed to help create kahoot games where you have a set of options $O$ and a set of questions $Q$ where for every $q \in Q$ there is exactly one right answer $ans(q) \in O$ and at most three different wrong answers $o \in O \setminus \\{ ans(q) \\}$. The input is formatted in YAML in the following format. Note that every answer must be contained in the set of options.
```yaml
options:
- first option
- second option
- ...
- n-th option
questions:
- q: first question
a: answer to first question
- q: second question
a: answer to second question
- ...
- q: m-th question
a: answer to m-th question
```The script randomizes the order of questions and answers automatically with a seemingly random seed every time. For every question, it waits for the user to enter the letter `c` as input to continue. It then prints the question to the standard output, copies it to the clipboard, and waits for 5 seconds until the next step. This time period can be changed by the `--wait-time` command line option. After that, it iterates through the 4 options and does the same three things: prints it, copies it to the clipboard, and waits for the same amount of time. This loop proceeds for all questions. At any point, the user can type `r` instead of `c` to tell the script to repeat the last step, in case the user could not paste a value in time. The user can also configure a delay period after typing `c` (to continue to the next question) through the ``--countdown-time`` command line option.
## Setup
```sh
pip install -r requirements.txt
```## Example
```sh
python main.py sample.yml
```## Help
```sh
python main.py --help
```