Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications.
3 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 5 matches · 2 of them tie a paragraph to a whole file without 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 · block
oscr:b:W4KGHBGD65HYC-5· Report a mismatch - [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 · block
oscr:b:W4KGHBGD65HYC-5· Report a mismatch - [3] § A neuroimaging pilot study › Methods ↔ main_trials.py, lines 5 to 61 · score 0.61 · fixation cross, motor control, watch tetris, crosshair, eye, button · block
oscr:b:G20F0R8PQY0HK-7· Report a mismatch - [4] § Tetrix: Implementation of a Tetris-based paradigm › Technical structure and file organization ↔ PyGame_Tetris_Code/game.py, lines 13 to 18 · score 0.56 · PyGame_Tetris_Code, config_tetris_game.txt · block
oscr:b:MR827RZCFR2ES-B· Report a mismatch - [5] § Tetrix: Implementation of a Tetris-based paradigm › Technical structure and file organization ↔ Tetrix_PsychoPy.py, lines 242 to 313 · score 0.53 · Tetrix_Psychopy, psyexp, log, game · Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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.1098/rsif.2023.0108 [code]
- Temporal dynamics of trauma memory persistence.Journal: Journal of the Royal Society, InterfaceIn common: cognitive, 4 references
- [2] 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
- [3] doi:10.1002/hbm.70355 [code]
- Wavelet Analysis of Dual-fMRI-Hyperscanning Reveals Cooperation and Communication Dependent Effects on Interbrain Neuronal Coherence.Journal: Human brain mappingIn common: PsychoPy, NumPy, fMRI, 3 references
- [4] doi:10.1038/s42003-022-04281-0 [code]
- The subcortical and neurochemical organization of the ventral and dorsal attention networks.Journal: Communications biologyIn common: SciPy, NumPy, cognitive, 4 references
- [5] doi:10.1523/jneurosci.2347-24.2025 [code]
- Neural Dynamics of Reselecting Visual and Motor Contents in Working Memory after External Interference.Journal: The Journal of neuroscience : the official journal of the Society for NeuroscienceIn common: PsychoPy, SciPy, NumPy, cognitive, 2 references
- [6] doi:10.1162/imag_a_00016 [code]
- Cortical changes during the learning of sequences of simultaneous finger presses.Journal: Imaging neuroscience (Cambridge, Mass.)In common: PsychoPy, SciPy, NumPy, cognitive, 2 references
- [7] doi:10.1016/j.dcn.2025.101598 [code]
- High-field fMRI at 7 Tesla reveals topographic responses tuned to number in the developing human brain.Journal: Developmental cognitive neuroscienceIn common: PsychoPy, SciPy, NumPy, fMRI, 2 references
- [8] doi:10.7554/elife.107053 [code]
- Feedback of peripheral saccade targets to early foveal cortex.Journal: eLifeIn common: PsychoPy, SciPy, NumPy, 2 references
- [9] doi:10.7554/elife.104041 [code]
- Preparatory attentional templates in prefrontal and sensory cortex encode target-associated information.Journal: eLifeIn common: cognitive, 4 references
- [10] 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
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:cf5eedb800914e5a…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.3758/s13428-026-03150-6)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.3758/s13428-026-03150-6.svg
:target: https://openscicode.org/badge/doi/10.3758/s13428-026-03150-6
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3758/s13428-026-03150-6"><img src="https://openscicode.org/badge/doi/10.3758/s13428-026-03150-6.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
