Skip to content

PsychoPy scripts to test goal-directed decision-making using the vending machine task

License

Notifications You must be signed in to change notification settings

datarichard/hunger-games

Repository files navigation

hunger-games

Psychopy scripts to test goal-directed decision-making using the vending machine task

Requirements

last tested with
macOS 11.4
PsychoPy3 v2021.1.4

General instructions

Run order:

  • Instrumental.py
  • Pavlovian.py
  • Transfer.py
  • Devaluation.py

Data is saved in the \data folder.

Participant instructions

Instrumental
Someone has told you that you can get free snacks from our vending machine. On the next screen you will see our vending machine. Use the t and v keys to tilt the machine to the left or right, and try to steal as many snacks as you can! Please only use one finger to press keys.

Pavlovian
We have discovered that people were stealing from the vending machines! We have upgraded the machine to make them harder to steal from. However, when the machine is overstocked a free snack will fall out. The lights on the front panel indicate whether the machine is overstocked. Watch the lights and learn which snacks fall out. A multiple choice question will test what you have learnt. Use the keyboard [a b c d] to indicate the correct answer.

Transfer
Now you have found one of the upgraded machines. At random intervals we will overstock it with a different snack. You will be given an opportunity to steal from the machine when it is overstocked. However, to test your memory no snacks will appear on the screen. Remember what you have learned, and steal as many snacks as you can.

Devaluation [before the movie, click here to download movies]
Something has happened to one of the snacks. Watch now to see what has happened.

Devaluation test [shown on screen after the movie]
You have found one of the original vending machines. As before, you won’t be shown any snacks on the screen. Use your memory to tilt it for the snack you want. Try to steal as much as you can, as this will determine what you will get to eat afterwards!

Alternate instructions

Run order:

  • contingency_RI.py
  • degradation_RI-1s.py

Data is saved in the \data folder.

Participant instructions

Contingency
(to be added)

Degradation
(to be added)

About

PsychoPy scripts to test goal-directed decision-making using the vending machine task

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages