Skip to content

Daphiy/SetShift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A behavioural task + questionnaire

This is an implementation of a behavioural task paired with a questionnaire at the beginning and feedback questions at the end. If you want to adjust this code for your purposes (another behavioural task), feel free to contact me at [email protected]

This behavioural task consists of two games :

  1. Wisconsin, a slight variation of the Wisconsin Card Sorting Task, where one card has to be matched to one of 4 piles
  2. Twist, a similiar task but with two cards, where the goal is to determine if they match or not

The game is organized as follows:

  1. PHQ-9 Questionnaire
  2. Wisconsin (round 1)
  3. Twist
  4. Wisconsin (round 2)
  5. Optional Feedback Questions

The code can be adapted to similiar tasks, for example by changing the cards to a different type of stimuli, and by changing the questionnaire.

Anonymised data

As this task includes a questionnaire about depression, the data has to be saved in a completely anonymised manner. When a participant enters the game, a random number between 0 and 100000 is generated, this is then their id throughout the game. Every action the participant makes in the game is saved in a separate row on google sheets, in the following format: id, phase, trial, response, time

  • id = randomly generated id
  • phase = what task/ questionnaire
  • trial = current trial number within the phase
  • response = user's response
  • time = time taken to respond

It is possible to save more information if needed.

File overview

I implemented the game in Unity, coding in C#.

The code is in Assets\Scripts\SetShifting

The questionnaire and feedback questions are in Assets\Scripts\SetShifting\Data

The stimuli (different cards and instruction images) are in Assets\Sprites

The plug-in for saving data remotely on google sheets is in Assets\RemoteLogger

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published