Skip to content

Wisconsin Type Card Sorting Task: Computer Version: PsychoPy

License

Notifications You must be signed in to change notification settings

OttoKuosmanen/WCST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wisconsin Type Card Sorting Task - Psychopy Edition

logo

GitHub last commit (by committer) GitHub code size in bytes GitHub language count GitHub License

This project is a Python-based adaptation inspired by the Wisconsin Card Sorting Task (WCST). Utilizing PsychoPy, we have developed an psychological test that captures the essence of cognitive flexibility. Our version is designed to run locally on any computer. This project was inspired by the original paper by Esta Berg (1948). It was created for educational purposes as part of a university course at the Arctic University of Norway, UiT.

Installation

  1. Download the Repository

    • Navigate to the GitHub repository page.
    • Click on the 'Code' button and select 'Download ZIP'
  2. Install PsychoPy

    • PsychoPy is required to run the game.
    • Download PsychoPy by following this link: Download PsychoPy Locally.
    • Install PsychoPy on your machine following the instructions provided on the website.
  3. Run the Game

    • After installing PsychoPy, open the PsychoPy Coder.
    • In the PsychoPy Coder, open the WCST.py game script. This file is located in GitHub repository folder Psychopy and there in the game folder.
    • Execute the script to start the game. Press this: logo image when the file is opened in the PsychopyCoder.

Folder Overview of WCST

Psychopy

In this directory, you'll find a PsychoPy version of the WCST.

  • game
    • The game is stored as WCST.py.
  • cards
    • Contains image files of the cards.
  • sounds
    • Sound files used in the game. Sourced from Zapsplat
  • results
    • Results of the test are saved here after completion.
  • logo
    • Logo for the game, generated with DALL-E 3.

Exam

Documentation of the WCST creation. In chronological order (PDF + Jupyter notebook file + html file).

  • game_logic

    • Basics of game logic.
  • imageCreation

    • Documentation on creating the card images.
  • PsychoPy

    • Documentation on creating the visual version of the game.

Script

  • GameLogic_V0.3

    • Basics of game logic. Initial stage.
  • GameLogic_V0.5

    • Basics of game logic. Newest Text based version.
  • create_images_script

    • Script that creates all 64 card images to: FOLDER cards.

Sources:

  • Esta A. Berg (1948) A Simple Objective Technique for Measuring Flexibility in Thinking, The Journal of General Psychology, 39:1, 15-22, DOI: 10.1080/00221309.1948.9918159