UiL-OTS-labs / jspsych-vislexdec-vp

This respository implements a visual lexical decision with visual prime
GNU General Public License v2.0
0 stars 0 forks source link

Implemented pseudorandomization #13

Closed tymees closed 4 years ago

tymees commented 4 years ago

This PR adds pseudo-randomization to the experiment.

The number of same-type stimuli that are allowed to appear in succession can be set with the new MAX_SUCCEEDING_ITEMS_OF_TYPE global.

I did hit a snag, namely that the randomisation library wasn't loaded in time when not loading from the cache. To fix that, I've wrapped the logic in index.html in a JS 'loaded' event, which ensures that it will be executed iff every js file has been loaded.

This makes the diff a bit useless. The only other addition is line 71