Code base to create your own in-house version of the New York Times's game "Connections"!
This game involves grouping 16 words into 4 groups of 4 words.
This code base allows you to customize experiment variables such as the number of connection puzzles (default is 1 practice puzzle and 6 scored puzzles), the number of attempts granted for each puzzle (default is 6), and provides the materials to make your own puzzle tiles.
How to use
-
"CreateSQLdatabase.m". First, you will need to create a SQL database with randomized puzzle orders and tile orders within each puzzle. We have used ionos.com to host experiments (including their SQL databases) and recommend it!
-
"stim_connectionsclean.php". This script will randomly select a row from your SQL database containing randomized puzzle and tile orders when a user plays the game.
-
"connectionsexp_clean.html". The experiment (or "game") code! This is where variables to customize the game, such as the number of puzzles, are.
-
"processdata_connectionsclean.php". Lastly, this script saves the variables (i.e., performance metrics like accuracy and reaction time) from the game to your database.