Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications.
The 5 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § A neuroimaging pilot study › Methods ↔ instructions.py, the whole file · a weak match · score 0.74 · fixation cross, motor control, game mechanics, watch tetris, button presses, tetris gameplay
- [2] § A neuroimaging pilot study › Methods ↔ instructions.py, the whole file · a weak match · score 0.65 · fixation cross, motor control, Button Presses, instructed, symbol, Tetris
- [3] § A neuroimaging pilot study › Methods ↔ main_trials.py, lines 5–61 · score 0.61 · fixation cross, motor control, watch tetris, crosshair, eye, button
- [4] § Tetrix: Implementation of a Tetris-based paradigm › Technical structure and file organization ↔ PyGame_Tetris_Code/game.py, lines 13–18 · score 0.56 · PyGame_Tetris_Code, config_tetris_game.txt
- [5] § Tetrix: Implementation of a Tetris-based paradigm › Technical structure and file organization ↔ Tetrix_PsychoPy.py, lines 242–313 · score 0.53 · Tetrix_Psychopy, psyexp, log, game
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 99 lines · 8.1 KB · Apache · 2 matches
- # This file contains the class for instructions based on the language defined in "config_paradigm_psychopy.txt"
- # Is executed as a python script, so it if necessary alter the instruction texts inside the '...' but not the structure of the code!
- class Instructions:
- ## Check what is given in the config files and set instuctions accordingly.
- ## naming is so that a "font" is used in a text stimulus in PsychoPy while stimuli that are used as images are "img" here
- def set_instructions(self,
- language,
- N_repeats,
- play_Tetris_Duration,
- motor_control_duration,
- watch_Tetris_duration,
- fixation_cross_duration):
- # since "font_explain_trials's" f-string uses interger calculation, if "main_trials" are disabled in the config N_repeats must be "0" instead of "None"...
- if N_repeats == None:
- N_repeats = 0
- # get amount of enabled conditions
- enabled_conditions = len([condition for condition in [play_Tetris_Duration, motor_control_duration, watch_Tetris_duration, fixation_cross_duration] if condition != 0 and condition is not None])
- # Language-specific instruction dictionaries
- instructions_dict = {
- 'German': {
- 'font_check_response': 'Bitte drücken Sie jede Taste der Responsebox zwei mal!',
- 'font_check_response_2': 'Responsebox erfolgreich gecheckt!',
- 'font_Intro_2': 'Willkommen zum Tetris-Experiment!',
- 'font_continue': 'Beliebige Taste drücken, um fortzufahren!',
- 'font_explanation_pretrial': 'Während diesem ersten Teil des Experiments werden Sie Tetris spielen und sich an das Setup gewöhnen! Die Level, die Sie in diesen ersten Runden erreichen, legen fest, welches Level Sie im Hauptteil spielen!',
- 'font_how_to_play': 'Wie man Tetris spielt:',
- 'img_explain_game_mechanics_1': 'Images/explain_game_mechanics_1_de.png',
- 'img_explain_game_mechanics_2': 'Images/explain_game_mechanics_2_de.png',
- 'img_explain_game_mechanics_3': 'Images/explain_game_mechanics_3_de.png',
- 'font_explain_staircase': 'Bitte beachten Sie, dass in diesen ersten Runden das LEVEL, auf das Sie nach GAME OVER zurückgesetzt werden VARIIERT!',
- 'img_explain_controls': 'Images/explain_controls_de.png',
- 'font_Controls': 'So bewegen Sie die Tetris-Blöcke:',
- 'font_start_pretrial': 'Beliebige Taste drücken, um das erste TETRIS-Spiel zu starten!',
- 'font_pause_n_sec': 'Pause!',
- 'font_intro_main': 'Jetzt beginnt der Hauptteil des Experiments!',
- 'font_intro_structure': 'So ist das Experiment aufgebaut:',
- 'font_Announcement': f'Während des Experiments werden Sie {enabled_conditions} verschiedene Symbole sehen:',
- 'font_play_Tetris': 'Controller: Spielen Sie Tetris! Versuchen Sie vor Ihrem INNEREN AUGE zu VISUALISISEREN, wo der DERZEITIGE Tetris-Block und die NEXT (nächsten) Blöcke am besten hinpassen! Zwischen zwei Tetris-Teilen wird das Spiel IM HINTERGRUND PAUSIERT!',
- 'font_explain_comp_load': 'Achtung! In jedem Tetris-Teil wird zufällig gewählt, ob es EIN oder DREI "Next-Blöcke" gibt.',
- 'font_explain_comp_speed': 'Achtung! In jedem Tetris-Teil wird zufällig gewählt, ob in einem HÖHEREN (schnelleren) oder TIEFEREN (langsameren) Level gespielt wird!',
- 'font_motor': 'Tastendruck: Drücken Sie die Tasten ABWECHSELND zum Rhythmus, der auf dem Bildschirm zu sehen ist!',
- 'font_watch': 'Auge: Schauen Sie Tetris zu! Schauen Sie einfach nur zu, während eine Spiel-Aufzeichnung für Sie gespielt wird. Bitte Drücken Sie KEINE Tasten!',
- 'font_cross': 'Fixationskreuz: Schauen Sie einfach das Kreuz in der Bildschirmmitte an und machen Sie nichts Anderes!',
- 'font_explain_trials_equal': f'Jede Wiederholung startet mit einem Teil TETRIS SPIELEN, gefolgt von einem zufällig gewählten Teil TETRIS ZUZUSCHAUEN, TASTENDRÜCKEN oder FIXATIONSKREUZ! Jeder Teil dauert {play_Tetris_Duration} Sekunden und es gibt {int(N_repeats) * 3} Wiederholungen!',
- 'font_explain_trials_unequal': f'Jede Wiederholung startet mit einem Teil TETRIS SPIELEN\n({play_Tetris_Duration} Sekunden), gefolgt von einem zufällig gewählten Teil TETRIS ZUZUSCHAUEN ({watch_Tetris_duration} Sekunden), TASTENDRÜCKEN\n({motor_control_duration} Sekunden) oder FIXATIONSKREUZ ({fixation_cross_duration} Sekunden)! Es gibt {int(N_repeats) * 3} Wiederholungen!',
- 'font_start': 'Jetzt beginnt das Experiment!',
- 'font_condition_ended': 'Teil beendet',
- 'font_end': 'Vielen Dank für Ihre Teilnahme!',
- },
- 'English': {
- 'font_check_response': 'Please press each button on the responsebox twice!',
- 'font_check_response_2': 'Responses checked successfully',
- 'font_Intro_2': 'Welcome to the Tetris experiment!',
- 'font_continue': 'Press any button to continue!',
- 'font_explanation_pretrial': 'During this first part of the experiment, you will play Tetris and get used to the setup! The levels you reach in these first rounds will determine the level you play in the main part of the experiment!',
- 'font_how_to_play': 'Here is how to play Tetris:',
- 'img_explain_game_mechanics_1': 'Images/explain_game_mechanics_1_en.png',
- 'img_explain_game_mechanics_2': 'Images/explain_game_mechanics_2_en.png',
- 'img_explain_game_mechanics_3': 'Images/explain_game_mechanics_3_en.png',
- 'font_explain_staircase': 'Please note that in these first rounds, the LEVEL that you will be put back to after GAME OVER VARIES!',
- 'img_explain_controls': 'Images/explain_controls_en.png',
- 'font_Controls': 'This is how you move the Tetris-Blocks:',
- 'font_start_pretrial': 'Press any button to start the first TETRIS-GAME!',
- 'font_pause_n_sec': 'Rest!',
- 'font_intro_main': 'Now the main part of the experiment begins!',
- 'font_intro_structure': 'This is how the experiment is structured:',
- 'font_Announcement': f'During the experiment you will encounter {enabled_conditions} different symbols:',
- 'font_play_Tetris': "Controller: Play Tetris! Try to VISUALIZE in your MIND'S EYE where the CURRENT Tetris block and the NEXTs blocks fit best! Between two Tetris parts the game is PAUSED in the BACKGROUND!",
- 'font_explain_comp_load': 'Note! In each Tetris part, it is randomly chosen, whether there will be ONE or THREE "Next" blocks.',
- 'font_explain_comp_speed': 'Note! In each Tetris part, it is randomly chosen, whether you will play in a HIGHER (faster) or LOWER (slower) level!',
- 'font_motor': 'Button press: Press the Buttons ALTERNATELY (one after another) to the rhythm displayed on the screen!',
- 'font_watch': 'Eye: Watch Tetris! Just watch while a game recording is played for you. Please DO NOT press any buttons!',
- 'font_cross': 'Fixation Cross: Just look at the cross in the middle of the screen and do nothing else!',
- 'font_explain_trials_equal': f'Each repetition starts with a round of PLAYING TETRIS followed by a randomly chosen part of WATCHING TETRIS GAMEPLAY, BUTTON PRESSES or FIXATION CROSS! Each part lasts {play_Tetris_Duration} seconds and there are {N_repeats * 3} repetitions!',
- 'font_explain_trials_unequal': f'Each repetition starts with a round of PLAYING TETRIS\n({play_Tetris_Duration} seconds) followed by a randomly chosen part of WATCHING TETRIS GAMEPLAY ({watch_Tetris_duration} seconds), BUTTON PRESSES\n({motor_control_duration} seconds) or FIXATION CROSS ({fixation_cross_duration} seconds)! There are {N_repeats * 3} repetitions!',
- 'font_start': 'Now, the experiment starts!',
- 'font_condition_ended': 'Part ended',
- 'font_end': 'Thank you for your Participation!',
- }
- }
- # Select appropriate language dictionary (default to English if not found)
- lang_dict = instructions_dict.get(language, instructions_dict['English'])
- # Set all attributes from the language dictionary
- for attr_name, attr_value in lang_dict.items():
- setattr(self, attr_name, attr_value)
- # Choose the correct explain_trials based on whether durations are equal
- if play_Tetris_Duration == watch_Tetris_duration == motor_control_duration == fixation_cross_duration:
- self.font_explain_trials = self.font_explain_trials_equal
- else:
- self.font_explain_trials = self.font_explain_trials_unequal
- # Clean up temporary attributes
- del self.font_explain_trials_equal, self.font_explain_trials_unequal
instructions.py at commit 0f14f79, under Apache · at the source
Overview
- Laboratory for Multimodal Neuroimaging, Department of Psychiatry and Psychotherapy, University of Marburg,Marburg, Germany
- Graduate Training Center for Neuroscience (GTC), University of Tübingen,Tübingen, Germany
- Center for Mind, Brain and Behavior (CMBB), University of Marburg and Justus Liebig University Giessen,Marburg, Germany
- Core-Facility Brainimaging, Faculty of Medicine, University of Marburg,Marburg, Germany
- Department of Psychosomatic Medicine and Psychotherapy, University of Marburg,Campus Fulda, Fulda, Germany
Abstract
Tetris is a widely used computer game, not only for entertainment purposes but increasingly in cognitive and clinical neuroscience research. Despite its frequent application in experiments, the neural mechanisms underlying gameplay remain insufficiently understood. Prior work suggests that cognitive control during complex visuospatial tasks, like Tetris, engages the attention network as well as regions supporting visuospatial working memory, mental imagery, and motor planning. However, researchers currently lack a standardized paradigm to investigate these processes. To address this gap, we introduce Tetrix, a novel and flexible Tetris-based paradigm designed for use in behavioral and functional magnetic resonance imaging (fMRI) experiments. With a broad range of customizable features, Tetrix can be adapted to specific experimental requirements or used in its default configuration. To validate the paradigm’s feasibility for neuroimaging applications, we conducted a proof-of-concept fMRI study with six participants. Results revealed robust bilateral activity in the frontal eye fields and posterior parietal cortex – key nodes of the dorsal attention network. Additional activation was found in the cerebellum and occipital cortex. These regions are thought to support rapid spatial orienting, the encoding and maintenance of visuospatial working memory, and motor planning. The observed activation patterns therefore align with theoretical expectations and confirm Tetrix’s utility for probing relevant cognitive functions in fMRI. Moreover, the pilot dataset and corresponding effect size maps provide a valuable resource for estimating statistical power in future research. In summary, this article introduces Tetrix as a standardized and validated paradigm for functional neuroimaging and beyond. It is available at: https://
Supplementary Information: The online version contains supplementary material available at 10.3758/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.
JuliusGrote/Tetrix_Psychopy
0f14f79b24e0c5ad9b5b98db73d9eff6517c8f87, 24 August 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
15 files
- PyGame_Tetris_Code/
__init__.py , Python, 1 line - PyGame_Tetris_Code/
block.py , Python, 87 lines - PyGame_Tetris_Code/
blocks.py , Python, 80 lines - PyGame_Tetris_Code/
colors.py , Python, 18 lines - PyGame_Tetris_Code/
game.py , Python, 616 lines, 1 match - PyGame_Tetris_Code/
grid.py , Python, 117 lines - PyGame_Tetris_Code/
position.py , Python, 8 lines - PyGame_Tetris_Code/
regression.py , Python, 89 lines - PyGame_Tetris_Code/
scale.py , Python, 15 lines - PyGame_Tetris_Code/
tetris_instance.py , Python, 304 lines - Tetrix_PsychoPy.py, Python, 4,422 lines, 1 match
- instructions.py, Python, 99 lines, 2 matches
- main_trials.py, Python, 116 lines, 1 match
- utils.py, Python, 164 lines
- README.md, Text, 194 lines
Code availability
Code for data analysis and stimulus presentation can be found on the same OSF website.
Reproduced under the paper's license (CC BY), from the paper cited above.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 14 scripts, each with its path and the digest of its content;
- 5 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
Data availability
All data and other materials are available on the Open Science Framework (OSF) at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Open practices statement
All data, analysis procedures, and code are available on OSF at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 2, 28 September 2026
- Publisher: n/a → Springer Science+Business Media
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 6 keywords, 12 MeSH terms, 3 funders, 46 references.
Cite
This paper
Grote, J., Stocker, J. E., Sommer, J., Hamm, A.-M., Kessler, H., & Jansen, A. (2026). Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications. Behavior research methods, 58(10), 279. https://
BibTeX
@article{grote2026tetrix
author = {Grote, Julius and Stocker, Julia Elina and Sommer, Jens and Hamm, Anna-Maria and Kessler, Henrik and Jansen, Andreas},
title = {{Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications}},
journal = {Behavior research methods},
year = {2026},
month = aug,
volume = {58},
number = {10},
pages = {279},
publisher = {Springer Science+Business Media},
issn = {1554-351X},
doi = {10.3758/
url = {https://
pmid = {42637970},
pmcid = {PMC13503407}
}
RIS
TY - JOUR
AU - Grote, Julius
AU - Stocker, Julia Elina
AU - Sommer, Jens
AU - Hamm, Anna-Maria
AU - Kessler, Henrik
AU - Jansen, Andreas
TI - Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications
T2 - Behavior research methods
J2 - Behav Res Methods
PY - 2026
DA - 2026/
VL - 58
IS - 10
SP - 279
SN - 1554-351X
PB - Springer Science+Business Media
DO - 10.3758/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3758/
"type": "article-journal",
"title": "Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications",
"container-title": "Behavior research methods",
"author": [
{
"family": "Grote",
"given": "Julius"
},
{
"family": "Stocker",
"given": "Julia Elina"
},
{
"family": "Sommer",
"given": "Jens"
},
{
"family": "Hamm",
"given": "Anna-Maria"
},
{
"family": "Kessler",
"given": "Henrik"
},
{
"family": "Jansen",
"given": "Andreas"
}
],
"container-title-short":
"volume": "58",
"issue": "10",
"page": "279",
"DOI": "10.3758/
"PMID": "42637970",
"PMCID": "PMC13503407",
"ISSN": "1554-351X",
"publisher": "Springer Science+Business Media",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
24
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1093/cercor/bhag058 [code]
- Visual field inhomogeneities and the architectonics of early visual cortex shape visual working memory.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: PsychoPy, NumPy, cognitive, 3 references
- [2] doi:10.1162/nol.a.271 [code]
- Compositional Complexity in Text and Images.Journal: Neurobiology of language (Cambridge, Mass.)In common: PsychoPy, SciPy, NumPy, fMRI, 2 references
- [3] doi:10.1017/s0033291726104309 [code]
- A visual cortex origin of trauma memory intrusions: integrated evidence from TMS and fMRI.Journal: Psychological medicineIn common: NumPy, fMRI, 3 references
- [4] doi:10.1162/imag.a.1034 [code]
- Top-down selection of visual working memory contents is supported by alpha-band phase-synchronized oscillatory networksJournal: n/aIn common: SciPy, NumPy, cognitive, 3 references
- [5] doi:10.1038/s41467-026-73865-9 [code]
- Histamine shapes the neurocomputational dynamics of human learning.Journal: Nature communicationsIn common: PsychoPy, SciPy, NumPy, cognitive, 1 reference
- [6] doi:10.1167/jov.26.8.4 [code]
- The neural processes of illusory occlusion in object recognition.Journal: Journal of visionIn common: PsychoPy, SciPy, NumPy, cognitive, 1 reference
- [7] doi:10.1038/s41598-026-53525-0 [code]
- Timing-induced illusory percepts of pitch.Journal: Scientific reportsIn common: PsychoPy, SciPy, NumPy, cognitive, 1 reference
- [8] doi:10.1038/s41467-026-75705-2 [code]
- Redundant prefrontal hemispheres adapt storage strategy to working memory demands.Journal: Nature communicationsIn common: SciPy, NumPy, cognitive, 2 references
- [9] doi:10.1016/j.isci.2026.116287 [code]
- Neural selectivity for social interactions in the infant brain.Journal: iScienceIn common: SciPy, NumPy, 3 references
- [10] doi:10.1186/s40708-026-00300-6 [code]
- Anatomical-connectivity-
guided functional connectivity reveals task-relevant pathways during proactive task-switching via recurrent graph neural networks. Journal: Brain informaticsIn common: NumPy, cognitive, 3 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 14 scripts, and 5 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:8d1b4e6298381e94…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
