Skip to content
Discussion options

You must be logged in to vote

Hi @Oriane4972, I think the problem is that, when all four constraints are in place, there are too few valid permutations (i.e. trial orders) that meet your requirements. This issue is noted in the jsPsych.randomization.shuffleNoRepeats docs here. The experiment hangs because jsPsych keeps shuffling the trial order and checking to see if the new order meets the constraints, which it doesn't, and repeating this process over and over again without success.

One option is to loosen your constraints a bit. For instance, maybe it's ok to repeat a word or color across neighboring trials, but not more than once, and only a certain number of times across the experiment. Or maybe some constraints a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Oriane4972
Comment options

@becky-gilbert
Comment options

Answer selected by Oriane4972
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