Class 4

From Lupyan_Lab_Wiki
Jump to: navigation, search


  1. Going over Exercise 3.
    1. How to generalize
    2. Quick primer on printing multiple values
  2. Basic string operations: joining and splitting strings
  3. Exercise: Practice with drawing multiple objects Solution
    1. Draw four gray squares, above, below, left, and right of center.
    2. Change the color of one of them to white in a random time interval between 1 and 3 seconds.
    3. Have a person respond to which square changed: left, right, top, or bottom.
    4. Output this info to a file: which square changed? what was the subject's response? RT?
  4. Reading the mouse coordinates and clicks.
    1. Using the mouse instead of the keyboard for the square-color exercise above
  5. Importing trials from a trial list