function fillPointBoxes(trial, turn) {

      // Case 1: forced choice turn (left)
      if (turn < 4 && trial.forced_choices[turn] == 0) {
        display_element.querySelector(`#L${turn}`).setAttribute('status','fill');

        // Case 2: forced choice turn (right)
      } else if (turn < 4 && trial.forced_choices[turn] == 1) {
        display_element.querySelector(`#R${turn}`).setAttribute('status','fill');

        // Case 3: free choice turn
      } else {
        display_element.querySelector(`#L${turn}`).setAttribute('status','fill');
        display_element.querySelector(`#R${turn}`).setAttribute('status','fill');
      }

    }
// Fill point box according to turn and forced choices.

Fill point box according to turn and forced choices.
Fill point box according to turn and forced choices .
function fillPointBoxes(trial, turn) {
      if (turn < 4 && trial.forced_choices[turn] == 0) {
        display_element.querySelector(`#L${turn}`).setAttribute('status','fill');
      } else if (turn < 4 && trial.forced_choices[turn] == 1) {
        display_element.querySelector(`#R${turn}`).setAttribute('status','fill');
      } else {
        display_element.querySelector(`#L${turn}`).setAttribute('status','fill');
        display_element.querySelector(`#R${turn}`).setAttribute('status','fill');
      }
    }
function fillPointBoxes ( trial , turn ) { if ( turn < 4 && trial . forced_choices [ turn ] == 0 ) { display_element . querySelector ( ` ${ turn } ` ) . setAttribute ( 'status' , 'fill' ) ; } else if ( turn < 4 && trial . forced_choices [ turn ] == 1 ) { display_element . querySelector ( ` ${ turn } ` ) . setAttribute ( 'status' , 'fill' ) ; } else { display_element . querySelector ( ` ${ turn } ` ) . setAttribute ( 'status' , 'fill' ) ; display_element . querySelector ( ` ${ turn } ` ) . setAttribute ( 'status' , 'fill' ) ; } }
Fill point box according to turn and forced choices.
Fill point box according to turn and forced choices .
// Case 1: forced choice turn (left)
 // Case 2: forced choice turn (right)
 // Case 3: free choice turn
