Skip to content

Selecting a difficulty level based on the users response. HTML Button Response #3268

Answered by Shaobin-Jiang
CayoPigeon asked this question in Q&A
Discussion options

You must be logged in to vote

You have made exactly the same mistakes new learners of jsPsych commonly make (not a mockery, just my personal opinion that the official documentation never laid enough stress on the matter).

I have been teaching my fellow students on jsPsych, and whenever I do, I would tell them this: creating a trial in jsPsych does not mean that it is run upon creation, and running a trial in jsPsych does not mean the parameters are being evaluated when the trial is run. So how have you been mistaken?

You are pushing the trials into the timeline with a loop, and you wrote down these lines:

timeline.push(difficultySelection);
if (chosenDifficulty == 0) {//Button tag for 'Easier' is 0
    difficultyLevel = 

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@CayoPigeon
Comment options

@Shaobin-Jiang
Comment options

@CayoPigeon
Comment options

@Shaobin-Jiang
Comment options

@CayoPigeon
Comment options

Answer selected by CayoPigeon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants