The dot-task is the basic perceptual decision-making task which underlies many of the studies herein. The task produces two squares which are populated with randomly-placed dots. One square (left or right) has more dots than the other, and the participant's task is to determine which square is most highly populated.
Squares are displayed to participants for a short time, after which they disappear. Responses are provided on a sliding scale from sure-left to sure-right, thus obtaining confidence and decision information simultaneously.
The task depends in part on the jsPsych library (specifically on a [particular fork thereof](https://github.com/mjaquiery/jsPsych)) to manage to interleaving of instructions and trials, and to provide the background management of the experiment, although much of the jsPsych functionality is overwritten at run-time by the dot-task package.