Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The TimePressureMazeTask (TPMT)

The TPMT was coded by Julien Cegarra (Prof. in Cognitive Ergonomics/Psychology) for the Cognition Sciences, Technology, Ergonomics (SCoTE) Laboratory, Albi, France. This program allows to study in a unique task both time estimation and time production, which is a topic of interest in Psychology.

Contact for the program: julien.cegarra AT univ-jfc.fr

In this task, participants have to solve a series of mazes. The maze's start position is always on the lefthand side of the screen, and the finish position always on the righthand side. To move through the maze from start to finish, participants have to move the character using the arrow keys of the keyboard. The program stops when participants find a magic fruit on their path, which appear at the end of one of the three target durations (30 s, 60 s or 90 s).

Time pressure is induced by a ghost that haunts the participant’s character. More specifically, the ghost move faster and is closer to the participant’s character in the condition with time pressure than in the condition without time pressure, but is never able to catch the character up. In this task, the participant has to solve three different mazes for three different duration (short (30 s), medium (60 s) and long (90 s)), making a total of nine mazes. We also include three mazes in which participants are always caught up by the ghost and therefore fail to solve the maze. All the mazes have exactly the same number of wrong paths with identical features, so that the level of difficulty is similar, regardless of the resolution duration. Moreover, the mazes are displayed in a fog, where only the area around the participant's character and the ghost is illuminated. This way, participants have no visual clues about the maze’s length.

If you use this task in a scientific research, please refer to this citation:
Rattat, A.-C., Matha, P., & Cegarra, J. (2018). Time flies faster under time pressure. Acta Psychologica, 185, 81-86.



Figure 1. The task without time pressure

The program requires Python 2.x (tested on version 2.7) and the corresponding version of the Pygame library, freely available online. Make sure you install the matching (32- or 64-bit) version of Pygame as your Python installation, and the one compatible with your Python version number. The program was coded for Windows systems. Some minimal code update will be necessary to run under linux or mac (especially to consider the difference in file systems).

Graphics were done by David Reilly. They are free to use. The porkys font is copyrighted by Fontalicious ( https://www.dafont.com/fr/porkys.font ). This font is free to use for personal usage.

The program is licenced under a MIT licence.

Running the TPMT

To test the TPMT just download all the files and run “mtpt.py”.

At the end of the task, if a “results” directory does not exist it will be created in the same directory. Then for each participant a subdirectory will be created and it will include all of their data. Saved data is in a .csv file format that you can directly open in MS Office, OpenOffice or LibreOffice. Saved data will include

  • Participant information (firstname, age, sex and the last 4 numbers of phone number for identification reason).
  • Time estimation (or time production) of maze duration by participants
  • All behavioral traces with a msec. timestamp (key press, movements in maze, movements of the ghost, actions such as the capture of a fruit and so on).

Modifying the TPMT

The TPMT was written to be easily modifiable by means of text files. The game functioning is organized around different files containing either:

  • A List of mazes (“_listtrainingfiles.txt“ for those used in the training phase; “_listescenariosfiles.txt” for those in the experiment itself)
  • Mazes. Their time reference is 30, 60 or 90 seconds. In order to define their duration, their filename must contain “short”, “medium” or long respectively. If the trial requires the participant to fail (ie. the ghost will eat the participant), just include “fail” in the filename. Examples: Medium-2A.txt Long-fail.txt
  • Instructions to display before or after a maze. The instructions provided are currently in French.
The code itself is a bit rough but easily customizable. It contains undocumented capability of displaying rating scales. Overall the code will probably support a bit of refactoring in different files.

When the participant indicate his/her data, he/she will also be requested a scenario ID (that the experimenter will give to him/her). There are 8 different scenarios types which allow to provide different variant of the task:

Scenario IDTask typeTime pressuredial/clock visible
aestimationyesno
bestimationnono
cestimationyesyes
destimationnoyes
eproductionyesno
fproductionnono
gproductionyesyes
hproductionnoyes
iprospectiveyesno
jprospectivenono
kprospectiveyesyes
lprospectivenoyes

About

Time Pressure Maze Task

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages