Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game: Allow storywriter to customize question prompt of the quiz #3011

Open
CYX22222003 opened this issue Aug 6, 2024 · 0 comments
Open
Labels
game All game related ideas, bugs, fixes minor Less important than important, but more than nice-to-have

Comments

@CYX22222003
Copy link
Contributor

Description

Under the current implementation, the question prompt of the quiz feature is fixed. It will be better if story writer can customize the prompt in the txt file. This may require a modification of the syntax of the txt file as well as the parser. The prompt field in the Question type will be used to capture the value of customized prompt.

export const questionPrompt = 'What is the correct answer?';

export type Question = {
question: string;
prompt?: string;
speaker: SpeakerDetail;
answer: Number;
options: Option[];
};

Related discussion

#2919

Sample of quiz

quizzes
    sourceManual
        0
        What is the pre-declared constant for: The Number value for π, the ratio of the circumference of a circle to its diameter?
        answer: 3
        option
            apple_Pi
            @ershk, thinking, left
            ...Are you hungry or something?
        option
            math_Pi
        option
            math_pi
        option
            math_PI

        1
        What is the pre-declared constant for: The Number value for the base-10 logarithm of e, the base of the natural logarithms?
        answer: 2
        option
            math_L10
        option
            math_LOG10
        option
            math_LOG10E
        option
            math_L10E

    telebayConsole
        0
        The first expression is: 100 + 37; What is the simplified form for this expression?
        answer: 3
        option
            13
        option
            37
        option
            100
        option
            137
            @scottie, smile, left
            Great! Looks like that worked.

        1
        The second expression is: (6 + 8) * 7 + 2 * 3; What is the simplified form for this expression?
        answer: 1
        option
            103
        option
            104
            @scottie, smile, left
            Great! Looks like that worked, too.
        option
            300
        option
            378
@CYX22222003 CYX22222003 added the game All game related ideas, bugs, fixes label Aug 6, 2024
@lhw-1 lhw-1 added the minor Less important than important, but more than nice-to-have label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
game All game related ideas, bugs, fixes minor Less important than important, but more than nice-to-have
Projects
None yet
Development

No branches or pull requests

2 participants