- Moderator creates quizzes manually or imports from prepared text files.
- Participants connect to the quiz room that is on the server.
- When moderator starts session, participants compete for correct answers.
- Participants have 10 seconds for each question
Run following command for both Server or Client
$ python3 main.py
IMPORTANT NOTE: Please don't press any key if it's not prompted. Especially when waiting for new questions.
QuizServer
class handles server operations.
- Select
Start new quiz
- Enter quiz name
- Select quiz creation method
- Import file: We have samples quizzes. Enter file path. (i.e:
samples/network.txt
samples/general.txt
) - Manually: Enter number of the questions in the quiz. Then enter question body and options as prompted.
- Import file: We have samples quizzes. Enter file path. (i.e:
- Review questions, enter to continue
- Wait for participants. Participants can't enter after you sent first question.
- Send first question, so quiz is started.
- Wait answers from participants (12 seconds)
- When you see scores after 12 seconds, you can send simply next question by pressing
Enter
- End of the quiz, scores are sent to all participants automatically.
QuizClient
class handles client operations.
- Select
Enter a quiz
. Discovery sent to network automatically.- If you are not in the same subnet with the server, first discover manually with
Manual quiz discovery
option thenEnter a quiz
- If you are not in the same subnet with the server, first discover manually with
- Select a quiz to enter
- Enter your username and wait for the first question
- When question is appeared, enter your answer and press
Enter
. - Wait for the next questions and give your answer when it is prompted.
- Repeat this process until all questions is done
- When the all questions are answered, you will see the scoreboard.
- Highlighted row is your score :)
(We did pair programming)
Quiz App is an open-sourced software licensed under the BSD-2 license.