Return to the Response Game page
						
										RESPONSE GAME
SCRIPT INFO

Script Author: Katja Borchert, Ph.D. (katjab@millisecond.com) for Millisecond Software LLC
Date: 10-23-2012
last updated: 01-22-2016 by K.Borchert (katjab@millisecond.com) for Millisecond Software LLC

Copyright © 01-22-2016 Millisecond Software


BACKGROUND INFO

											*Purpose*
This script implements the Dictator Game as described in:

Brocklebank, S., Lewis, G.J, & Bates, T.C. (2011). Personality accounts for stable preferences and expectations 
across a range of simple games. Personality and Individual Differences, 51, 881-886.

											  *Task*
A) Participant (Player A) gets to allocate money to herself and player B (aka computer) in either a more or less 
prosocial manner. The trials/games are presented in a decision tree format.
In game variant A, participants can choose to allocate the money themselves (= "out" choice) or have player B 
decide the amounts to allocate (="in" choice).

B) Participant (Player B) gets to allocate money to herself and player A (aka computer) in either a a more or 
less prosocial manner. In game variant B, the participant's choice is made under the assumption that player A 
(aka computer) chooses the "in" choice.


DATA FILE INFORMATION: 
The default data stored in the data files are:

(1) Raw data file: 'ResponseGame_raw*.iqdat' (a separate file for each participant)

build:							Inquisit build
computer.platform:				the platform the script was run on
date, time, subject, group:		date and time script was run with the current subject/groupnumber 
/ResponseGameType:				1 = Participant is Player A ; 2 = Participant is Player B
blockcode, blocknum:			the name and number of the current block
trialcode, trialnum: 			the name and number of the currently recorded trial
									(Note: not all trials that are run might record data) 
/branch:						1 = designated "left" and "out" amounts displayed on left; 2 = designated "left" and "out" amounts displayed on right

/Avalue_Out - Bvalue_Right: 	contain the out/in, left/right amounts
/responsebranch:				the actually selected response branch A1 or A2, B1 or B2
											!!!! Note: if the participant selected a designated 'left' amount but the amount
											was presented on the right, values.responsebranch = B2 but response = left (designated left)
											If a participant always selects the designated 'left' values, response = left for all trials,
											but values.responsebranch will reflect the actual branch chosen.

response:						the participant's response: the designated out/in, left/right amount
latency: 						the response latency (in ms)

/count_Out:						sums up all Out choices
/count_In:						sums up all In choices
/count_Left:					sums up all Left choices
/count_Right:					sums up all Right choices
/totalA:						the total amount Player A owns
/totalB:						the total amount Player B owns

/show_opponentpic:				1 = a picture of an opponent is displayed on decision tree screen (fine tune picture under STIMULUS -> picture.OpponentA or picture.OpponentB]
								0 = no opponent picture is displayed (default)
/showPlayerAwins:				1 = show win status of Player A; 0 = do not show win status of player A (default)
/showPlayerBwins:				1 = show win status of Player B; 0 = do not show win status of player B (default)
/coplayercondition:				1 = coplayer (aka computer) always makes designated 'out'/'left' choice (default); 
								2 = coplayer always makes designated 'in'/'right' choice; 
								3 = coplayer makes a random choice, dictated by list.randomchoice
/posttrialpause:				sets the posttrialpause for the trials in ms
/coplayerchoice:				helper variable that determines whether the computer makes an out-left (= 1) /in-right (=0)choice (only relevant to determine the total)


(2) Summary data file: 'ResponseGame_summary*.iqdat' (a separate file for each participant)

script.startdate:				date script was run
script.starttime:				time script was started
script.subjectid:				subject id number
script.groupid:					group id number
script.elapsedtime:				time it took to run script (in ms)
computer.platform:				the platform the script was run on
/completed:						0 = script was not completed (prematurely aborted); 1 = script was completed (all conditions run)
/ResponseGameType:				1 = Participant is Player A ; 2 = Participant is Player B
/count_Out:						sums up all Out choices
/count_In:						sums up all In choices
/count_Left:					sums up all Left choices
/count_Right:					sums up all Right choices
/totalA:						the total amount Player A owns
/totalB:						the total amount Player B owns

/show_opponentpic:				1 = a picture of an opponent is displayed on decision tree screen (fine tune picture under STIMULUS -> picture.OpponentA or picture.OpponentB]
								0 = no opponent picture is displayed (default)
/showPlayerAwins:				1 = show win status of Player A; 0 = do not show win status of player A (default)
/showPlayerBwins:				1 = show win status of Player B; 0 = do not show win status of player B (default)
/coplayercondition:				1 = coplayer (aka computer) always makes designated 'out'/'left' choice (default); 
								2 = coplayer always makes designated 'in'/'right' choice; 
								3 = coplayer makes a random choice, dictated by list.randomchoice
/posttrialpause:				sets the posttrialpause for the trials in ms



EXPERIMENTAL SET-UP
(1) Game Variant played:
The game can be either played from the perspective of Player A (variant A) or Player B (variant B). By default 
it is run as Player A. This can be easily edited under VALUES-> EDITABLE VALUES -> parameters.ResponseGameType.

(2) Games played:
This script runs 6 response game trials (default).
NOTE: to change the number of games played, edit
a) LISTS: list.a_out, list.b_out, list.aleft, list.bleft, list.aright, list.bright to reflect the desired number of trials/amounts
b) BLOCK: adjust the number of trials run under block.dictator

(3) Within-participant control of response keys:
Presentation of designated 'out'/'left' amounts randomized without replacement within participants.
Of the 6 games (default), 3 randomly determined trials will display the designated 'out'/'left' choices on the left branch, 
the remaining 3 will display them on the 'in'/right branch.
!!!NOTE:
=> values.responsebranch reflects the actual branch chosen by the participant.
=> 'Response' reflects if participant chose the designated 'out'/'left or 'in'/'right' amounts 

(4) Calculation of Win amounts:
Total win amounts are calculated based on the state of parameters.coplayercondition. 
By default the coplayer (aka computer) is set to always have chosen the 'out'/'left' choice. 
Other options are 
b) always the 'in'/'right' choice and 
c) random choices. List.randomchoice controls the selection. It is set so that it selects out/left choices
in 50% of the cases. Go to list.randomchoice for further information.

STIMULI
see section Editable Stimuli

INSTRUCTIONS
Instructions can be edited under section Editable Instructions	

EDITABLE CODE:
check below for (relatively) easily editable parameters, stimuli, instructions etc. 
Keep in mind that you can use this script as a template and therefore always "mess" with the entire code to further customize your experiment.

The parameters you can change are:

/pictureintro:					1 = a separate picture introduction of the co-player is displayed before decision tree screens come up
									(fine tune picture under STIMULUS -> picture.opponentpic]
								0 = no separate picture introduction of the co-player (default)
/show_opponentpic:				1 = a picture of an opponent is displayed on decision tree screen (fine tune picture under STIMULUS -> picture.OpponentA or picture.OpponentB]
								0 = no opponent picture is displayed (default)
/showPlayerAwins:				1 = show win status of Player A; 0 = do not show win status of player A (default)
/showPlayerBwins:				1 = show win status of Player B; 0 = do not show win status of player B (default)
/coplayercondition:				1 = coplayer (aka computer) always makes designated 'out'/'left' choice (default); 
								2 = coplayer always makes designated 'in'/'right' choice; 
								3 = coplayer makes a random choice, dictated by list.randomchoice
/ResponseGameType:				1 = Participant is Player A ; 2 = Participant is Player B
/posttrialpause:				sets the posttrialpause for the trials in ms

Copyright © Millisecond Software. All rights reserved.
Contact | Terms of Service | Security Statement | Employment