forked from not-the-fish/trust-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrust_Game_Template.qsf
1 lines (1 loc) · 62 KB
/
Trust_Game_Template.qsf
1
{"SurveyEntry":{"SurveyID":"SV_3lWMNSbIlB2K9Vj","SurveyName":"Trust Game Template","SurveyDescription":null,"SurveyOwnerID":"URH_2h5BOWNEhRq2aqM","SurveyBrandID":"uiuc","DivisionID":null,"SurveyLanguage":"EN","SurveyActiveResponseSet":"RS_7VzXFKDMhWShd9r","SurveyStatus":"Active","SurveyStartDate":"0000-00-00 00:00:00","SurveyExpirationDate":"0000-00-00 00:00:00","SurveyCreationDate":"2015-09-09 09:53:22","CreatorID":"URH_2h5BOWNEhRq2aqM","LastModified":"2018-03-17 11:33:30","LastAccessed":"0000-00-00 00:00:00","LastActivated":"2015-09-09 14:20:26","Deleted":null},"SurveyElements":[{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"BL","PrimaryAttribute":"Survey Blocks","SecondaryAttribute":null,"TertiaryAttribute":null,"Payload":{"0":{"Type":"Default","Description":"game","ID":"BL_3yjBg4A9jiUwQ05","BlockElements":[{"Type":"Question","QuestionID":"QID3"},{"Type":"Question","QuestionID":"QID35"}]},"1":{"Type":"Trash","Description":"Trash \/ Unused Questions","ID":"BL_5hFpK8t1GTkPghL","BlockElements":[]},"3":{"Type":"Standard","SubType":"","Description":"Instruction","ID":"BL_eJtZCQVAYMeQCLr","BlockElements":[{"Type":"Question","QuestionID":"QID6"},{"Type":"Page Break"},{"Type":"Question","QuestionID":"QID31"},{"Type":"Page Break"},{"Type":"Question","QuestionID":"QID32"},{"Type":"Page Break"},{"Type":"Question","QuestionID":"QID36"}]}}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"FL","PrimaryAttribute":"Survey Flow","SecondaryAttribute":null,"TertiaryAttribute":null,"Payload":{"Type":"Root","FlowID":"FL_1","Flow":[{"Type":"EmbeddedData","FlowID":"FL_4","EmbeddedData":[{"Description":"controller1","Type":"Recipient","Field":"controller1","VariableType":"Nominal"},{"Description":"controller2","Type":"Recipient","Field":"controller2","VariableType":"Nominal"},{"Description":"controller3","Type":"Recipient","Field":"controller3","VariableType":"Nominal"},{"Description":"controller4","Type":"Recipient","Field":"controller4","VariableType":"Nominal"},{"Description":"controller5","Type":"Recipient","Field":"controller5","VariableType":"Nominal"},{"Description":"controller6","Type":"Recipient","Field":"controller6","VariableType":"Nominal"},{"Description":"controller7","Type":"Recipient","Field":"controller7","VariableType":"Nominal"},{"Description":"controller8","Type":"Recipient","Field":"controller8","VariableType":"Nominal"},{"Description":"controller9","Type":"Recipient","Field":"controller9","VariableType":"Nominal"},{"Description":"controller10","Type":"Recipient","Field":"controller10","VariableType":"Nominal"},{"Description":"controller11","Type":"Recipient","Field":"controller11","VariableType":"Nominal"},{"Description":"controller12","Type":"Recipient","Field":"controller12","VariableType":"Nominal"},{"Description":"controller13","Type":"Recipient","Field":"controller13","VariableType":"Nominal"},{"Description":"controller14","Type":"Recipient","Field":"controller14","VariableType":"Nominal"},{"Description":"controller15","Type":"Recipient","Field":"controller15","VariableType":"Nominal"},{"Description":"controller16","Type":"Recipient","Field":"controller16","VariableType":"Nominal"},{"Description":"controller17","Type":"Recipient","Field":"controller17","VariableType":"Nominal"},{"Description":"controller18","Type":"Recipient","Field":"controller18","VariableType":"Nominal"},{"Description":"controller19","Type":"Recipient","Field":"controller19","VariableType":"Nominal"},{"Description":"controller20","Type":"Recipient","Field":"controller20","VariableType":"Nominal"},{"Description":"controller21","Type":"Recipient","Field":"controller21","VariableType":"Nominal"},{"Description":"controller22","Type":"Recipient","Field":"controller22","VariableType":"Nominal"},{"Description":"controller23","Type":"Recipient","Field":"controller23","VariableType":"Nominal"},{"Description":"controller24","Type":"Recipient","Field":"controller24","VariableType":"Nominal"},{"Description":"gave1","Type":"Recipient","Field":"gave1","VariableType":"Nominal"},{"Description":"gave2","Type":"Recipient","Field":"gave2","VariableType":"Nominal"},{"Description":"gave3","Type":"Recipient","Field":"gave3","VariableType":"Nominal"},{"Description":"gave4","Type":"Recipient","Field":"gave4","VariableType":"Nominal"},{"Description":"gave5","Type":"Recipient","Field":"gave5","VariableType":"Nominal"},{"Description":"gave6","Type":"Recipient","Field":"gave6","VariableType":"Nominal"},{"Description":"gave7","Type":"Recipient","Field":"gave7","VariableType":"Nominal"},{"Description":"gave8","Type":"Recipient","Field":"gave8","VariableType":"Nominal"},{"Description":"gave9","Type":"Recipient","Field":"gave9","VariableType":"Nominal"},{"Description":"gave10","Type":"Recipient","Field":"gave10","VariableType":"Nominal"},{"Description":"gave11","Type":"Recipient","Field":"gave11","VariableType":"Nominal"},{"Description":"gave12","Type":"Recipient","Field":"gave12","VariableType":"Nominal"},{"Description":"gave13","Type":"Recipient","Field":"gave13","VariableType":"Nominal"},{"Description":"gave14","Type":"Recipient","Field":"gave14","VariableType":"Nominal"},{"Description":"gave15","Type":"Recipient","Field":"gave15","VariableType":"Nominal"},{"Description":"gave16","Type":"Recipient","Field":"gave16","VariableType":"Nominal"},{"Description":"gave17","Type":"Recipient","Field":"gave17","VariableType":"Nominal"},{"Description":"gave18","Type":"Recipient","Field":"gave18","VariableType":"Nominal"},{"Description":"gave19","Type":"Recipient","Field":"gave19","VariableType":"Nominal"},{"Description":"gave20","Type":"Recipient","Field":"gave20","VariableType":"Nominal"},{"Description":"gave21","Type":"Recipient","Field":"gave21","VariableType":"Nominal"},{"Description":"gave22","Type":"Recipient","Field":"gave22","VariableType":"Nominal"},{"Description":"gave23","Type":"Recipient","Field":"gave23","VariableType":"Nominal"},{"Description":"gave24","Type":"Recipient","Field":"gave24","VariableType":"Nominal"},{"Description":"returned1","Type":"Recipient","Field":"returned1","VariableType":"Nominal"},{"Description":"returned2","Type":"Recipient","Field":"returned2","VariableType":"Nominal"},{"Description":"returned3","Type":"Recipient","Field":"returned3","VariableType":"Nominal"},{"Description":"returned4","Type":"Recipient","Field":"returned4","VariableType":"Nominal"},{"Description":"returned5","Type":"Recipient","Field":"returned5","VariableType":"Nominal"},{"Description":"returned6","Type":"Recipient","Field":"returned6","VariableType":"Nominal"},{"Description":"returned7","Type":"Recipient","Field":"returned7","VariableType":"Nominal"},{"Description":"returned8","Type":"Recipient","Field":"returned8","VariableType":"Nominal"},{"Description":"returned9","Type":"Recipient","Field":"returned9","VariableType":"Nominal"},{"Description":"returned10","Type":"Recipient","Field":"returned10","VariableType":"Nominal"},{"Description":"returned11","Type":"Recipient","Field":"returned11","VariableType":"Nominal"},{"Description":"returned12","Type":"Recipient","Field":"returned12","VariableType":"Nominal"},{"Description":"returned13","Type":"Recipient","Field":"returned13","VariableType":"Nominal"},{"Description":"returned14","Type":"Recipient","Field":"returned14","VariableType":"Nominal"},{"Description":"returned15","Type":"Recipient","Field":"returned15","VariableType":"Nominal"},{"Description":"returned16","Type":"Recipient","Field":"returned16","VariableType":"Nominal"},{"Description":"returned17","Type":"Recipient","Field":"returned17","VariableType":"Nominal"},{"Description":"returned18","Type":"Recipient","Field":"returned18","VariableType":"Nominal"},{"Description":"returned19","Type":"Recipient","Field":"returned19","VariableType":"Nominal"},{"Description":"returned20","Type":"Recipient","Field":"returned20","VariableType":"Nominal"},{"Description":"returned21","Type":"Recipient","Field":"returned21","VariableType":"Nominal"},{"Description":"returned22","Type":"Recipient","Field":"returned22","VariableType":"Nominal"},{"Description":"returned23","Type":"Recipient","Field":"returned23","VariableType":"Nominal"},{"Description":"returned24","Type":"Recipient","Field":"returned24","VariableType":"Nominal"},{"Description":"punish1","Type":"Recipient","Field":"punish1","VariableType":"Nominal"},{"Description":"punish2","Type":"Recipient","Field":"punish2","VariableType":"Nominal"},{"Description":"punish3","Type":"Recipient","Field":"punish3","VariableType":"Nominal"},{"Description":"punish4","Type":"Recipient","Field":"punish4","VariableType":"Nominal"},{"Description":"punish5","Type":"Recipient","Field":"punish5","VariableType":"Nominal"},{"Description":"punish6","Type":"Recipient","Field":"punish6","VariableType":"Nominal"},{"Description":"punish7","Type":"Recipient","Field":"punish7","VariableType":"Nominal"},{"Description":"punish8","Type":"Recipient","Field":"punish8","VariableType":"Nominal"},{"Description":"punish9","Type":"Recipient","Field":"punish9","VariableType":"Nominal"},{"Description":"punish10","Type":"Recipient","Field":"punish10","VariableType":"Nominal"},{"Description":"punish11","Type":"Recipient","Field":"punish11","VariableType":"Nominal"},{"Description":"punish12","Type":"Recipient","Field":"punish12","VariableType":"Nominal"},{"Description":"punish13","Type":"Recipient","Field":"punish13","VariableType":"Nominal"},{"Description":"punish14","Type":"Recipient","Field":"punish14","VariableType":"Nominal"},{"Description":"punish15","Type":"Recipient","Field":"punish15","VariableType":"Nominal"},{"Description":"punish16","Type":"Recipient","Field":"punish16","VariableType":"Nominal"},{"Description":"punish17","Type":"Recipient","Field":"punish17","VariableType":"Nominal"},{"Description":"punish18","Type":"Recipient","Field":"punish18","VariableType":"Nominal"},{"Description":"punish19","Type":"Recipient","Field":"punish19","VariableType":"Nominal"},{"Description":"punish20","Type":"Recipient","Field":"punish20","VariableType":"Nominal"},{"Description":"punish21","Type":"Recipient","Field":"punish21","VariableType":"Nominal"},{"Description":"punish22","Type":"Recipient","Field":"punish22","VariableType":"Nominal"},{"Description":"punish23","Type":"Recipient","Field":"punish23","VariableType":"Nominal"},{"Description":"punish24","Type":"Recipient","Field":"punish24","VariableType":"Nominal"},{"Description":"score","Type":"Recipient","Field":"score","VariableType":"Nominal"},{"Description":"training","Type":"Recipient","Field":"training","VariableType":"Nominal"},{"Description":"pilot","Type":"Recipient","Field":"pilot","VariableType":"Nominal"},{"Description":"controller25","Type":"Recipient","Field":"controller25","VariableType":"Nominal"},{"Description":"controller26","Type":"Recipient","Field":"controller26","VariableType":"Nominal"},{"Description":"controller27","Type":"Recipient","Field":"controller27","VariableType":"Nominal"},{"Description":"controller28","Type":"Recipient","Field":"controller28","VariableType":"Nominal"},{"Description":"controller29","Type":"Recipient","Field":"controller29","VariableType":"Nominal"},{"Description":"controller30","Type":"Recipient","Field":"controller30","VariableType":"Nominal"},{"Description":"gave25","Type":"Recipient","Field":"gave25","VariableType":"Nominal"},{"Description":"gave26","Type":"Recipient","Field":"gave26","VariableType":"Nominal"},{"Description":"gave27","Type":"Recipient","Field":"gave27","VariableType":"Nominal"},{"Description":"gave28","Type":"Recipient","Field":"gave28","VariableType":"Nominal"},{"Description":"gave29","Type":"Recipient","Field":"gave29","VariableType":"Nominal"},{"Description":"gave30","Type":"Recipient","Field":"gave30","VariableType":"Nominal"},{"Description":"returned25","Type":"Recipient","Field":"returned25","VariableType":"Nominal"},{"Description":"returned26","Type":"Recipient","Field":"returned26","VariableType":"Nominal"},{"Description":"returned27","Type":"Recipient","Field":"returned27","VariableType":"Nominal"},{"Description":"returned28","Type":"Recipient","Field":"returned28","VariableType":"Nominal"},{"Description":"returned29","Type":"Recipient","Field":"returned29","VariableType":"Nominal"},{"Description":"returned30","Type":"Recipient","Field":"returned30","VariableType":"Nominal"},{"Description":"punish25","Type":"Recipient","Field":"punish25","VariableType":"Nominal"},{"Description":"punish26","Type":"Recipient","Field":"punish26","VariableType":"Nominal"},{"Description":"punish27","Type":"Recipient","Field":"punish27","VariableType":"Nominal"},{"Description":"punish28","Type":"Recipient","Field":"punish28","VariableType":"Nominal"},{"Description":"punish29","Type":"Recipient","Field":"punish29","VariableType":"Nominal"},{"Description":"punish30","Type":"Recipient","Field":"punish30","VariableType":"Nominal"}]},{"Type":"Standard","ID":"BL_eJtZCQVAYMeQCLr","FlowID":"FL_5"},{"Type":"Block","ID":"BL_3yjBg4A9jiUwQ05","FlowID":"FL_2"}],"Properties":{"Count":17}}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"SO","PrimaryAttribute":"Survey Options","SecondaryAttribute":null,"TertiaryAttribute":null,"Payload":{"BackButton":"false","SaveAndContinue":"false","SurveyProtection":"PublicSurvey","BallotBoxStuffingPrevention":"false","NoIndex":"Yes","SurveyExpiration":null,"SurveyTermination":"DefaultMessage","Header":"<script src=\"\/\/code.jquery.com\/jquery-1.11.0.min.js\"><\/script><script>\n var $j = jQuery.noConflict();\n<\/script>","Footer":"","ProgressBarDisplay":"None","PartialData":"+1 week","ValidationMessage":null,"PreviousButton":" << ","NextButton":" >> ","SkinLibrary":"Qualtrics","SkinType":"MQ","Skin":"v4qualtrics1","NewScoring":1,"libraryId":"","nextButtonMid":"","previousButtonMid":"","headerMid":"","footerMid":"","QuestionsPerPage":"","PageTransition":"Slide","ExternalCSS":null,"CustomStyles":{"errorStyles":{"selector":".Skin .ValidationError","styles":{"color":null,"backgroundColor":null,"borderColor":null}},"errorStylesBG":{"selector":".Skin .HeaderValidationError, .Skin .HeaderValidationError li a","styles":{"color":null,"backgroundColor":null}},"pageStyles":{"selector":"#SurveyEngineBody","styles":{"backgroundColor":null}},"textStyles":{"selector":".SkinInner","styles":{"fontFamily":null,"fontSize":null,"fontWeight":null,"fontStyle":null,"textDecoration":null,"color":null}},"questionStyles":{"selector":".Skin .QuestionText","styles":{"fontFamily":null,"fontSize":null,"fontWeight":null,"fontStyle":null,"textDecoration":null,"color":null}},"choiceStyles":{"selector":".Skin .horizontalbar th.ylabel, .Skin .Matrix table td, .Skin .Matrix table th, .Skin .Matrix table thead th, .Skin .Matrix table thead td, .Skin .PGR .DragAndDrop .Items label, .Skin .QuestionBody ul.ChoiceStructure, .Skin .PGR .DragAndDrop .Group ul, .Skin .PGR .DragAndDrop .Group h2, .Skin .PGR .DragAndDrop .Items ul, .Skin .PGR .DragAndDrop .Items h2, .Skin .DD .QuestionBody table.ChoiceStructure, .Skin .PGR .DragAndDrop .NoColumns td.groupsContainerTd div ul, .Skin .PGR .DragAndDrop .NoColumns td.groupsContainerTd div h2, .Skin .SBS thead th, .Skin .SBS td, .Skin .SBS .Answers td, .Skin .SBS .Answers th, .SBS table.ChoiceStructure, .Skin .horizontalbar thead table.LabelDescriptions tr td, .Skin .horizontalbar thead tr td.NotApplicable, .QuestionBody th, .Skin .QuestionBody .MC .MAVR label, .Skin .QuestionBody .MC .SAVR label, .Skin .SBS thead th, .Skin .SBS td, .Skin .RO .DND ul li, .Skin .reg, .SkinInner .ChoiceStructure, .Skin thead, .Skin .GAP .ChoiceStructure thead th, .Skin .GAP .ChoiceStructure .c4, .Skin .GAP .ChoiceStructure th, .Skin .GAP .ChoiceStructure .WhyText, .SkinInner .ChoiceStructure .LightBG, .Skin .QuestionOuter.Highlight .Inner .reg, .Skin .QuestionOuter.Highlight .Inner .alt, .Skin .QuestionOuter.Highlight .Inner .ReadableAlt ","styles":{"fontFamily":null,"fontSize":null,"fontWeight":null,"fontStyle":null,"textDecoration":null,"color":null}},"headerStyles":{"selector":".Skin div#Header","styles":{"color":null}},"footerStyles":{"selector":".Skin #Footer","styles":{"color":null}},"questionSeparatorStyles":{"selector":".Skin .Separator","styles":{"backgroundColor":null,"display":"block"}},"highlightStyles":{"selector":".Skin .QuestionOuter.Highlight .Inner, .Skin .QuestionOuter.Highlight .Inner .reg, .Skin .QuestionOuter.Highlight .Inner .alt, .Skin .QuestionOuter.Highlight .Inner .ReadableAlt","styles":{"backgroundColor":null}},"highlightStylesAlt":{"selector":".Skin .QuestionOuter.Highlight .Inner .ReadableAlt, .Skin .QuestionOuter.Highlight .Inner .LightBG","styles":{"backgroundColor":null}},"textEntryStyles":{"selector":".Skin select, .Skin .InputText","styles":{"color":null}},"borderStyles":{"selector":".Skin .CS .horizontalbar table.sliderGrid tr.xlabel th, .Skin .CS .horizontalbar .ylabel, .Skin .CS .horizontalbar table.sliderGrid tr td.value, .Skin .Slider .horizontalbar table.sliderGrid tr.xlabel th, .Skin .BorderColor, .Skin .DarkBorderColor, .Skin .Slider .horizontalbar table.sliderGrid tr td.value, .Skin thead, .Skin .GAP .ChoiceStructure thead th ","styles":{"borderColor":null}},"altRowStyles":{"selector":".Skin .ReadableAlt, .Skin .LightBG","styles":{"backgroundColor":null}},"customCSS":"#gameboard {\n height: 580px;\n width: 590px;\n border: 5px solid rgb(8, 29, 88);\n padding: 10px;\n font-family: Arial, Helvetica, sans-serif;\n color: rgb(8, 29, 88);\n background-color: rgb(247, 252, 240);\n font-size: large;\n line-height: 100%;\n}\n\n#avatarGrid {\n width: 450;\n margin-left: auto;\n margin-right: auto;\n}\n\n#topBox {\n width: 465px !important;\n margin-left: auto !important;\n margin-right: auto !important; \n}\n\n.avatarIcon {\n width: 55px;\n height: 55px;\n margin: 4px;\n padding: 4px;\n background-color: white;\n}\n\n.infobox {\n width:75px !important;\n height:85px !important;\n background-color: #253494 !important;\n border-style: solid !important;\n border-width: 5px !important;\n border-color: #081d58 !important;\n padding: 5px !important;\n margin: 10px !important;\n font-family: Arial, Helvetica, sans-serif !important;\n color: #ffffff !important;\n float: left !important;\n text-align: center !important;\n}\n\n.boxContents {\n width:60px !important;\n height:55px !important;\n background-color: #ffffff !important;\n padding: 5px !important;\n margin-left: auto !important;\n margin-right: auto !important;\n margin-top: 5px !important;\n font-family: Arial, Helvetica, sans-serif;\n color: #081d58 !important;\n text-align: center !important;\n font-size: xx-large;\n}\n\n.textContents {\n margin-top: 11px;\n}\n\n.playerImage {\n width: 50px !important;\n height: 50px !important;\n margin-left: auto !important;\n margin-right: auto !important;\n vertical-align: middle !important;\n background-color: #ffffff !important;\n}\n\n#imageCredit {\n width:480px;\n font-family: Arial, Helvetica, sans-serif;\n color: #888888;\n font-size: small;\n margin-top: 30px;\n}"},"HighlightQuestions":"off","EOSMessage":"","ShowExportTags":"false","CollectGeoLocation":"false","SurveyTitle":"Online Survey Software | Qualtrics Survey Solutions","SurveyMetaDescription":"Qualtrics sophisticated online survey software solutions make creating online surveys easy. Learn more about Research Suite and get a free account today.","PasswordProtection":"No","AnonymizeResponse":"Yes","Password":"","RefererCheck":"No","RefererURL":"http:\/\/","EOSMessageLibrary":"","EOSRedirectURL":"http:\/\/","EmailThankYou":"false","ThankYouEmailMessageLibrary":null,"ThankYouEmailMessage":null,"ValidateMessage":"false","ValidationMessageLibrary":null,"InactiveSurvey":"DefaultMessage","InactiveMessageLibrary":"","InactiveMessage":"","AvailableLanguages":{"EN":[]},"ProtectSelectionIds":true}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"SCO","PrimaryAttribute":"Scoring","SecondaryAttribute":null,"TertiaryAttribute":null,"Payload":{"ScoringCategories":[],"ScoringCategoryGroups":[],"ScoringSummaryCategory":null,"ScoringSummaryAfterQuestions":0,"ScoringSummaryAfterSurvey":0,"DefaultScoringCategory":null,"AutoScoringCategory":null}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"STAT","PrimaryAttribute":"Survey Statistics","SecondaryAttribute":null,"TertiaryAttribute":null,"Payload":{"MobileCompatible":true,"ID":"Survey Statistics"}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"QC","PrimaryAttribute":"Survey Question Count","SecondaryAttribute":"36","TertiaryAttribute":null,"Payload":null},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"RS","PrimaryAttribute":"RS_7VzXFKDMhWShd9r","SecondaryAttribute":"Default Response Set","TertiaryAttribute":null,"Payload":null},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"SQ","PrimaryAttribute":"QID36","SecondaryAttribute":"On some rounds, you will get to be Controller.\u00a0On these rounds, you will be given the opportunity..","TertiaryAttribute":null,"Payload":{"QuestionText":"<div><span style=\"font-size: 19px;\">On some rounds, you will get to be <b>Controller.<\/b> On these rounds, you will be given the opportunity to punish the other player. If you feel they played unfairly, you will be able to <b>take away <i>one third<\/i> of the tickets they kept.<\/b><\/span><\/div><div><span style=\"font-size: 19px;\"><b><br><\/b><\/span><\/div><div><span style=\"font-size: 19px;\">On the other rounds, <b>the other player will get to be Controller. <\/b>If they feel <i>you<\/i> played unfairly, they will get to take away one third of the tickets <i>you <\/i>kept that round.<\/span><\/div>\n\n<div> <\/div>\n\n<div><span style=\"font-size: 19px;\"><strong>When the instructions are clear, press the continue button to begin the game.<\/strong><\/span><\/div>","DefaultChoices":false,"DataExportTag":"controlins","QuestionType":"DB","Selector":"TB","Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"On some rounds, you will get to be Controller.\u00a0On these rounds, you will be given the opportunity...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"QuestionID":"QID36"}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"SQ","PrimaryAttribute":"QID3","SecondaryAttribute":"Please wait for the game to load. You Round Tickets Player 2 You have been given raffle tickets....","TertiaryAttribute":null,"Payload":{"QuestionText":"<div id=\"waitForGame\">Please wait for the game to load.<\/div>\n\n <div id=\"gameboard\">\n <div id=\"topBox\" style=\"display:none; width: 465px; margin-left: auto;\n margin-right: auto;\">\n <div id=\"playerBox\" class=\"infoBox\" style=\"display:none; width:95px;\n background-color: #253494; border-style: solid; border-width: 5px;\n border-color: #081d58; padding: 5px; margin: 10px;\n font-family: Arial, Helvetica, sans-serif; color: #ffffff;\n float: left; text-align: center;\">\n <div class=\"boxTitle\">You<\/div>\n\n <div class=\"boxContents\" style=\"width:65px; height:60px;\n background-color: #ffffff; padding: 5px; margin-left: auto;\n margin-right: auto; margin-top: 5px;\n font-family: Arial, Helvetica, sans-serif; color: #081d58;\n text-align: center; font-size: xx-large;\">\n <img id=\"player1image\" class=\"playerImage\"\n style=\"width:50px; height:50px;\">\n <\/div>\n <\/div>\n\n <div id=\"roundBox\" class=\"infoBox\" style=\"display:none; width:95px;\n background-color: #253494; border-style: solid; border-width: 5px;\n border-color: #081d58; padding: 5px; margin: 10px;\n font-family: Arial, Helvetica, sans-serif; color: #ffffff;\n float: left; text-align: center;\">\n <div class=\"boxTitle\">Round<\/div>\n\n <div class=\"boxContents\" style=\"width:65px; height:60px;\n background-color: #ffffff; padding: 5px; margin-left: auto;\n margin-right: auto; margin-top: 5px;\n font-family: Arial, Helvetica, sans-serif; color: #081d58;\n text-align: center; font-size: xx-large;\">\n <div class=\"textContents\" id=\"roundNumber\"\n style=\"margin-top: 11px;\"><\/div>\n <\/div>\n <\/div>\n\n <div id=\"scoreBox\" class=\"infoBox\" style=\"display:none; width:95px;\n background-color: #253494; border-style: solid; border-width: 5px;\n border-color: #081d58; padding: 5px; margin: 10px;\n font-family: Arial, Helvetica, sans-serif; color: #ffffff;\n float: left; text-align: center;\">\n <div class=\"boxTitle\">Tickets<\/div>\n\n <div class=\"boxContents\" style=\"width:65px; height:60px;\n background-color: #ffffff; padding: 5px; margin-left: auto;\n margin-right: auto; margin-top: 5px;\n font-family: Arial, Helvetica, sans-serif; color: #081d58;\n text-align: center; font-size: x-large;\">\n <div class=\"textContents\" id=\"scoreValue\"\n style=\"margin-top: 11px;\"><\/div>\n <\/div>\n <\/div>\n\n <div id=\"avatarBox\" class=\"infoBox\" style=\"display:none; width:95px;\n background-color: #253494; border-style: solid; border-width: 5px;\n border-color: #081d58; padding: 5px; margin: 10px;\n font-family: Arial, Helvetica, sans-serif; color: #ffffff;\n float: left; text-align: center;\">\n <div class=\"boxTitle\">Player 2<\/div>\n\n <div class=\"boxContents\" style=\"width:65px; height:60px;\n background-color: #ffffff; padding: 5px; margin-left: auto;\n margin-right: auto; margin-top: 5px;\n font-family: Arial, Helvetica, sans-serif; color: #081d58;\n text-align: center; font-size: xx-large;\">\n <img id=\"player2image\" class=\"playerImage\"\n style=\"width:50px; height:50px;\">\n <\/div>\n <\/div>\n <br><br><br><br><br><br><br><br>\n <\/div>\n\n <div id=\"message\" style=\"width:80%;\">\n <div id=\"giveInterface\" style=\"display:none;\">\n You have been given \n <span id=\"rValueGiven\" style=\"font-weight: bold;\"><\/span> raffle \n tickets.<br><br>\n How many tickets will you\n <span style=\"font-weight:bold;\">give<\/span> to Player 2?<br><br>\n\n <div class=\"range-slider\" data-slider>\n \n <input type=\"range\" id=\"giveNumber\" min=0 max=100 step=1\n value=0 oninput=\"outputUpdate(value)\">\n <output for=\"giveNumber\" id=\"currentGiveValue\">0\n <\/output>\n <\/div><br>\n\n <a href=\"javascript:returnTickets()\"><img id=\"giveButton\"><\/a>\n <\/div>\n\n <div id=\"waitForReturn\" style=\"display: none;\">\n You gave Player 2\n <span id=\"gaveNumber\" style=\"font-weight: bold;\"><\/span> of your\n tickets. These tickets were tripled before being passed on.\n <br><br>\n \n Player 2 received \n <span id=\"receiveNumber\" style=\"font-weight: bold;\"><\/span>\n tickets.<br><br>\n\n <div id=\"waitForMove\" style=\"display: none;\">\n Player 2 will decide how many tickets to\n return<span id=\"p2decidesToPunish\" style=\"display: none;\">\n and whether to make you lose some of the tickets you\n kept<\/span>.\n <br><br>\n\n Waiting for Player 2 to move. . . .<br><br>\n\n <img id=\"waitingForPlayer2\">\n <\/div>\n\n <div id=\"returnedTickets\" style=\"display: none;\">\n Player 2 has returned \n <span id=\"returnedNumber\" style=\"font-weight: bold;\"><\/span>\n tickets to you.<br><br>\n\n <div id=\"controllerOption\">\n You may punish Player 2 by making them lose\n <span id=\"p1punishmentNumber\"\n style=\"font-weight: bold;\"> <\/span> of their tickets.\n Would you like to do this?<br>\n \n <a href=\"javascript:endRound(1)\" \n style=\"text-decoration: none;\">\n <img id=\"punishButton\" style=\"padding: 5px;\">\n <\/a> \n \n <a href=\"javascript:endRound(0)\">\n <img id=\"noPunishButton\" style=\"padding: 5px;\">\n <\/a>\n <\/div>\n\n <div id=\"player2punished\" style=\"display: none;\">\n <span style=\"font-weight: bold;\">\n Player 2 decided to punish you!\n <\/span>\n You lost\n <span id=\"p2punishmentNumber\" style=\"font-weight:bold;\">\n <\/span> tickets!<br><br>\n <\/div>\n\n <div id=\"player2spared\" style=\"display: none;\">\n Player 2 decided to not punish you!\n <\/div>\n <\/div>\n <\/div>\n\n <div id=\"showEndButton\" style=\"display:none;\">\n <div id=\"noSharing\">You kept all of your tickets.<\/div>\n\n <div id=\"punishmentSuccess\">Player 2 has lost tickets!<\/div>\n \n <br><br>Press the button to end this round.<br>\n \n <a href=\"javascript:startRound(0)\"><img id=\"endRound\"><\/a>\n <\/div> \n <\/div>\n\n <div id=\"instructions\">\n <br>You have been assigned to the role of\n <span style=\"font-weight:bold;\">Player 1<\/span>!<br><br>\n \n Each round, you will receive <span id=\"rValueIntro\"><\/span> raffle\n tickets and will be matched with a different Player 2. <br><br>\n \n You may give as many of these tickets to Player 2 as you wish. Any\n tickets you give to Player 2 will be\n <span style=\"font-weight: bold;\">tripled<\/span>. Then, Player 2 may\n return as many of the tripled tickets as they wish.<br><br>\n \n On <span id=\"p1ControllerRounds\"><\/span> rounds, you will also get\n to be the <span style=\"font-weight: bold;\">Controller<\/span>. On\n these rounds, you can punish Player 2 by making them lose one third\n of the tickets they kept if you think they played unfairly.<br><br>\n\n On <span id=\"p2ControllerRounds\"><\/span> rounds, \n <span style=\"font-weight: bold;\">Player 2<\/span> will be the\n Controller. They will get to make you lose one third of the\n tickets you kept if they feel you played unfairly.<br><br>\n\n <div id=\"noControllerExplanation\">\n On the remaining rounds, there will be \n <span style=\"font-weight: bold;\">no<\/span> Controller.\n All decisions by both players will be final.<br><br>\n <\/div>\n\n <div id=\"blockingExplanation\">The Controller assignments will be \n grouped so that you will play all of the rounds you are\n Controller in a row and the same for the rounds Player 2 is\n Controller.\n <\/div>\n\n <br><br>\n Ready to begin? Press the blue button power button below! If there's\n no button, just wait a few seconds for it to load.<br><br><br>\n <a href=\"javascript:showAvatars(0)\"><img id=\"beginGame\"><\/a>\n <\/div>\n \n <div id=\"selectAvatar\" style=\"display:none;\">\n Select an avatar to represent yourself in the game.<br>Your avatar\n will be shown to the players you are matched with.<br><br>\n\n <div id=\"avatarGrid\">\n <a id=\"link0\"><img id=\"avatar0\" class=\"avatarIcon\"><\/a>\n <a id=\"link1\"><img id=\"avatar1\" class=\"avatarIcon\"><\/a>\n <a id=\"link2\"><img id=\"avatar2\" class=\"avatarIcon\"><\/a>\n <a id=\"link3\"><img id=\"avatar3\" class=\"avatarIcon\"><\/a>\n <a id=\"link4\"><img id=\"avatar4\" class=\"avatarIcon\"><\/a>\n <a id=\"link5\"><img id=\"avatar5\" class=\"avatarIcon\"><\/a>\n <a id=\"link6\"><img id=\"avatar6\" class=\"avatarIcon\"><\/a>\n <a id=\"link7\"><img id=\"avatar7\" class=\"avatarIcon\"><\/a>\n <a id=\"link8\"><img id=\"avatar8\" class=\"avatarIcon\"><\/a>\n <a id=\"link9\"><img id=\"avatar9\" class=\"avatarIcon\"><\/a>\n <a id=\"link10\"><img id=\"avatar10\" class=\"avatarIcon\"><\/a>\n <a id=\"link11\"><img id=\"avatar11\" class=\"avatarIcon\"><\/a>\n <a id=\"link12\"><img id=\"avatar12\" class=\"avatarIcon\"><\/a>\n <a id=\"link13\"><img id=\"avatar13\" class=\"avatarIcon\"><\/a>\n <a id=\"link14\"><img id=\"avatar14\" class=\"avatarIcon\"><\/a>\n <a id=\"link15\"><img id=\"avatar15\" class=\"avatarIcon\"><\/a>\n <a id=\"link16\"><img id=\"avatar16\" class=\"avatarIcon\"><\/a>\n <a id=\"link17\"><img id=\"avatar17\" class=\"avatarIcon\"><\/a>\n <a id=\"link18\"><img id=\"avatar18\" class=\"avatarIcon\"><\/a>\n <a id=\"link19\"><img id=\"avatar19\" class=\"avatarIcon\"><\/a>\n <a id=\"link20\"><img id=\"avatar20\" class=\"avatarIcon\"><\/a>\n <a id=\"link21\"><img id=\"avatar21\" class=\"avatarIcon\"><\/a>\n <a id=\"link22\"><img id=\"avatar22\" class=\"avatarIcon\"><\/a>\n <a id=\"link23\"><img id=\"avatar23\" class=\"avatarIcon\"><\/a>\n <a id=\"link24\"><img id=\"avatar24\" class=\"avatarIcon\"><\/a>\n <a id=\"link25\"><img id=\"avatar25\" class=\"avatarIcon\"><\/a>\n <a id=\"link26\"><img id=\"avatar26\" class=\"avatarIcon\"><\/a>\n <a id=\"link27\"><img id=\"avatar27\" class=\"avatarIcon\"><\/a>\n <a id=\"link28\"><img id=\"avatar28\" class=\"avatarIcon\"><\/a>\n <a id=\"link29\"><img id=\"avatar29\" class=\"avatarIcon\"><\/a>\n <\/div>\n <\/div>\n\n <div id=\"matchingPlayers\" style=\"display:none;\">\n <span id=\"youAreController\">\n <span style=\"font-weight:bold;\">\n You will be Controller this round!\n <\/span>\n If you feel Player 2 plays unfairly, you will have the\n opportunity to punish them when the round is over.\n <\/span>\n\n <span id=\"noController\">\n <span style=\"font-weight:bold;\">\n There will be no Controller this round.\n <\/span>\n The decisions made by both players will be final.\n <\/span>\n\n <span id=\"player2isController\">\n <span style=\"font-weight:bold;\">\n Player 2 will be Controller this round.\n <\/span>\n If Player 2 feels you play unfairly, they will have the\n opportunity to punish you when the round is over.\n <\/span><br><br>\n \n <div id=\"loadingMatch\" style=\"display:none;\">\n Matching you with a player for Round\n <span id=\"matchRoundNumber\"><\/span>. . . .<br><br>\n\n <img id=\"matchLoadBar\">\n <\/div>\n\n <div id=\"playRound\" style=\"display:none;\">\n Match found! Press the button to start the round.<br><br>\n\n <a href=\"javascript:giveInterface()\"><img id=\"playButton\"><\/a>\n <\/div>\n <\/div>\n\n <div id=\"gameOver\" style=\"display:none;\">\n You've finished the game!<br><br>\n\n You have earned <span id=\"finalScore\"><\/span> tickets for the $50\n raffle!<br><br>\n\n Press the continue button below to end the game and continue with\n the survey.<br><br>\n <\/div>\n <\/div>\n\n <div id=\"imageCredit\">\n <div>Icons made by\n <a href=\"http:\/\/www.flaticon.com\/authors\/freepik\" title=\"Freepik\">\n Freepik\n <\/a>\n from\n <a href=\"http:\/\/www.flaticon.com\" title=\"Flaticon\">\n www.flaticon.com\n <\/a>\n are licensed by \n <a href=\"http:\/\/creativecommons.org\/licenses\/by\/3.0\/\"\n title=\"Creative Commons BY 3.0\">CC BY 3.0.<\/a>\n <a href=\"http:\/\/www.flaticon.com\/packs\/cute-animals\">\n Available here.\n <\/a>\n <\/div>\n <\/div>","QuestionJS":"\/* *********************************************************************\n Update settings for game here. \n ********************************************************************* *\/\n var controller1Max = 15; \/\/ how many times should P1 be Controller?\n var controller2Max = 15; \/\/ how many times should P2 be controller?\n var roundMax = 30; \/\/ how many rounds in game?\n var roundValue = 100; \/* how many tickets is each round worth?\n NOTE: If you change this value, you must\n also change the max amount in the \n giveNumber slider below (simply\n search for \"giveNumber\"). *\/\n var qualtrics = true; \/\/ set to 'true' to send data to Qualtrics\n var blockTrials = true; \/* are Controller assignments blocked (true)\n or fully randomized (false) *\/\n var stinMin = .0; \/\/ min prop tickets returned by stingy player\n var stinMax = .1; \/\/ max prop tickets returned by stingy player\n \/\/ stingy: association + P1 Controller\n var geneMin = .6; \/\/ min prop tickets returned by generous player\n var geneMax = .7; \/\/ max prop tickets returned by generous player\n \/\/ generous: association + P2 Controller\n var fairMin = .45; \/\/ min prop tickets returned by fair player\n var fairMax = .55; \/\/ max prop tickets returned by fair player\n \/\/ fair: no association OR no Controller\n\n \/* *********************************************************************\n * Update this file list with paths to your *locally hosted* files (for *\n * example, files hosted on *your* Qualtrics account or your server). *\n ********************************************************************* *\/\n \/\/ root URL for image files in Qualtrics file system\n var root = \"https:\/\/s.qualtrics.com\/ControlPanel\/File.php?F=F_\";\n\n \/\/ avatar file names are root + ids, stored in array\n var avatarFiles = new Array();\n avatarFiles.push(root+\"4VMOAvQA1AESFJX\"); \/\/ unique file ids\n avatarFiles.push(root+\"a8E4fq4HMIw3wRn\"); \/\/ upload images to your account\n avatarFiles.push(root+\"41qtXpnDxiLoTnT\"); \/\/ and change the ids to match\n avatarFiles.push(root+\"57M3YRh0kfWpdpr\"); \/\/ your copies\n avatarFiles.push(root+\"3sWu55iUZaIVoJn\");\n avatarFiles.push(root+\"e3su4OeukxIY9CZ\");\n avatarFiles.push(root+\"0oiJckoSOfpKTnD\");\n avatarFiles.push(root+\"9KuZG4ekZd4UWGx\");\n avatarFiles.push(root+\"eX8CjocdADHCYdv\");\n avatarFiles.push(root+\"9RGuX0mrqkvMHYN\");\n avatarFiles.push(root+\"3BCvo7dbIcMxLeZ\");\n avatarFiles.push(root+\"0jOCzPpysN3F02h\");\n avatarFiles.push(root+\"cHZpTL2OKihmxKd\");\n avatarFiles.push(root+\"5osYMdT6CxqEGc5\");\n avatarFiles.push(root+\"dnaeU4f35tPXfaR\");\n avatarFiles.push(root+\"b2Z4JXCknJPFBrL\");\n avatarFiles.push(root+\"b2urm5wlLyXBPcp\");\n avatarFiles.push(root+\"8kLN8v8UlC6NoQ5\");\n avatarFiles.push(root+\"5vZBKB7NkJ1mjs1\");\n avatarFiles.push(root+\"1ZddqNgJpNe5afP\");\n avatarFiles.push(root+\"9zC1P1OSQ05U3fn\");\n avatarFiles.push(root+\"8IbWG9VRYKB3Dbn\");\n avatarFiles.push(root+\"5orljVA2e8OIa7X\");\n avatarFiles.push(root+\"5swzD2G4puy2fDn\");\n avatarFiles.push(root+\"9vu3Mfg7NUSyaJT\");\n avatarFiles.push(root+\"3IBZ3muYDPZqDKR\");\n avatarFiles.push(root+\"2nLEiQXvtriNBMF\");\n avatarFiles.push(root+\"0PzlS9rV8wBfWS1\");\n avatarFiles.push(root+\"5guGfZ9AsYZZhQh\");\n avatarFiles.push(root+\"1HN5ae178prwa8J\");\n\n \/\/ other image URLs are root + id, stored as strings\n var waitingBarFile = root + \"cuLNvJBnRzXU2RD\";\n var giveButtonFile = root + \"bCMaxwrks4uUKcl\";\n var punishButtonFile = root + \"428JoN2ysMi54lT\";\n var noPunishButtonFile = root + \"bDaZOz1sgiQS101\";\n var endRoundFile = root + \"5iJjE6rhiUxEqpf\";\n var beginGameFile = root + \"3mbxmoTIIZ5xY7b\";\n var playButtonFile = root + \"2nH6wQejyqHW1E1\";\n \n \/* *********************************************************************\n * Begin game code. *\n ********************************************************************* *\/\n\n \/\/ *** Initialize variables ***\n var score = 0; \/\/ how many tickets has the player won so far?\n var punish = 0; \/\/ was a punishment issued this round? 0 = no; 1 = yes\n var round = 1; \/\/ what round is it?\n var gives = []; \/\/ array of amount given each round\n var returned = []; \/\/ array of amount returned by Player 2 each round\n var punishes = []; \/\/ array of whether punishments were given or not\n var trainingCondition = Math.round(Math.random() ); \/\/ set training cond\n var index = 0;\n var controllerArray = new Array; \/\/ array of assignments to Controller\n var controller; \/\/ who is controller this round? \n\n \/\/ set up the game only when everything is loaded\n Qualtrics.SurveyEngine.addOnload(function(){\t\t\n var roundSum = controller1Max + controller2Max; \/\/sum Controller rds\n var avatarId;\n var linkId;\n\n console.log(\"ready!\");\n console.log(\"Number of rounds: \" + roundMax);\n $j(\"#rValueIntro\").text(roundValue);\n $j(\"#gameboard\").show();\n $j(\"#waitForGame\").hide();\n $j(\"fieldset > .QuestionBody\").hide();\n $j('#NextButton').hide();\n $j(\"#p1ControllerRounds\").text(controller1Max);\n $j(\"#p2ControllerRounds\").text(controller2Max);\n\n \/\/ show the no controller instructions if needed\n if (roundSum >= roundMax) {\n $j(\"#noControllerExplanation\").hide();\n }\n\n \/\/ if there are too many controller rounds, give warning\n if (roundSum > roundMax) {\n alert(\"The number of rounds (\" + roundMax + \") is less than the number needed for Player 1 to be Controller \" + controller1Max + \" times AND Player 2 to be Controller \" + controller2Max + \" times. Please fix this error in the game settings before running the game.\");\n }\n\n \/\/ show blocking instructions if needed\n if (blockTrials == false) {\n $j(\"#blockingExplanation\").hide();\n }\n \n \/\/ load the avatar images and links\n for (var i = 0; i < avatarFiles.length; i++) {\n avatarId = \"#avatar\" + i;\n linkId = \"#link\" + i;\n $j(avatarId).attr(\"src\", avatarFiles[i])\n $j(linkId).attr(\"href\", \"javascript:pickAvatar(\" + i +\")\");\n }\n\n \/\/ load the other images\n $j(\"#giveButton\").attr(\"src\", giveButtonFile);\n $j(\"#waitingForPlayer2\").attr(\"src\", waitingBarFile);\n $j(\"#punishButton\").attr(\"src\", punishButtonFile);\n $j(\"#noPunishButton\").attr(\"src\", noPunishButtonFile);\n $j(\"#endRound\").attr(\"src\", endRoundFile);\n $j(\"#beginGame\").attr(\"src\", beginGameFile);\n $j(\"#matchLoadBar\").attr(\"src\", waitingBarFile);\n $j(\"#playButton\").attr(\"src\", playButtonFile);\n\n \/\/ Save the results to Qualtrics \n this.questionclick = function(event,element){\n if(element.type == 'radio' & qualtrics == true) {\n for (var i = 0; i < roundMax; i++) {\n var var1 = 'controller'+(i+1);\n var var2 = 'gave'+(i+1);\n var var3 = 'returned'+(i+1);\n var var4 = 'punish'+(i+1);\n Qualtrics.SurveyEngine.setEmbeddedData(var1,\n controllerArray[i]);\n Qualtrics.SurveyEngine.setEmbeddedData(var2, gives[i]);\n Qualtrics.SurveyEngine.setEmbeddedData(var3, returned[i]);\n Qualtrics.SurveyEngine.setEmbeddedData(var4, punishes[i]);\n }\n Qualtrics.SurveyEngine.setEmbeddedData('score', score);\n Qualtrics.SurveyEngine.setEmbeddedData('training',\n trainingCondition);\n this.clickNextButton();\n }\n }\n });\n\n\n \/\/ shuffle an array\n function shuffleArray(myArray) {\n for (var i = myArray.length - 1; i > 0; i--) {\n var j = Math.floor(Math.random() * (i + 1));\n var temp = myArray[i];\n myArray[i] = myArray[j];\n myArray[j] = temp;\n }\n return myArray;\n }\n\n \/\/ fill array of controller assignments\n function assignController() {\n \/\/ how many no Controller rounds?\n var n0 = roundMax - controller1Max - controller2Max;\n \/\/ randomize order of Controller assignment blocks\n var blockArray = shuffleArray([0, 1, 2]); \n var counts = [n0, controller1Max, controller2Max];\n\n console.log(blockArray);\n\n \/\/ build the array in blocks\n for (var i = 0; i < blockArray.length; i++) {\n var j = 0;\n while (j < counts[blockArray[i]]) {\n controllerArray.push(blockArray[i]);\n j++;\n }\n }\n\n \/\/ if blocking in NOT desired, shuffle all assignments\n if (blockTrials == false) {\n controllerArray = shuffleArray(controllerArray);\n }\n }\n\n \/\/ When player starts the game, show them the avatar selection screen\n function showAvatars() {\n console.log(\"show avatars\");\n $j(\"#instructions\").hide();\n $j(\"#selectAvatar\").show();\n }\n \n \/\/ show player's avatar & initialize game\n function pickAvatar(whichAvatar) {\n var player1uri = avatarFiles[whichAvatar];\n $j('#player1image').attr('src', player1uri);\n assignController();\n startRound();\n }\n\n \/\/ Start a round\n function startRound(){\n \/* if game is over, show the continue button and let the player\n leave otherwise, start a new round of the game *\/\n $j(\"#controllerOption\").hide();\n $j(\"#returnedTickets\").hide();\n $j(\"#punishmentSuccess\").hide();\n $j(\"#showEndButton\").hide();\n $j(\"#noSharing\").hide();\n if (round > roundMax){\n console.log(\"round > roundMax\");\n $j(\"#topBox\").hide();\n $j(\"#finalScore\").text(score);\n $j('#gameOver').show();\n $j(\"fieldset > .QuestionBody\").show();\n $j(\"#Buttons\").hide();\n } else {\n \/\/ reset the slider to 0\n document.getElementById(\"giveNumber\").value = 0;\n $j(\"#currentGiveValue\").text(\"0\");\n \n \/* Generate a random number from 2500 and 3500 that defines how\n many ms player waits before P2 supposedly joins the game *\/\n var playerWaitTime = Math.floor(Math.random() * 1000) + 2500;\n console.log(playerWaitTime);\n \n \/\/ randomly select an avatar for Player 2\n var player2 = Math.floor(Math.random()*30);\n var player2uri = avatarFiles[player2]; \n var sentTickets = 0; \/\/ how many tickets has P1 sent this round?\n var returnedTickets = 0; \/\/ how many tickets returned to P1?\n \n \/\/ who is controller this round?\n controller = controllerArray[round - 1];\n console.log(\"Round: \" + round + \"; Controller: \" + controller);\n \n \/* When the round begins, hide avatar selection and punishment\n results, and show the player that they are assigned to P1 *\/\n $j(\"#waitForReturn\").hide();\n $j(\"#topBox\").show();\n $j(\"#selectAvatar\").hide();\n $j(\"#player2spared\").hide();\n $j(\"#player2punished\").hide();\n $j(\"#avatarBox\").hide();\n $j(\"#matchingPlayers\").show();\n $j(\"#loadingMatch\").show();\n $j(\"#matchRoundNumber\").text(round);\n $j(\"#roundNumber\").text(round);\n $j(\"#roundBox\").show();\n $j(\"#scoreBox\").show();\n $j(\"#playerBox\").show();\n \n \/\/ tell the player who is controller\n if (controller == 1){\n $j(\"#noController\").hide();\n $j(\"#youAreController\").show();\n $j(\"#player2isController\").hide();\n } else if (controller == 2){\n $j(\"#noController\").hide();\n $j(\"#youAreController\").hide();\n $j(\"#player2isController\").show();\n } else {\n $j(\"#noController\").show();\n $j(\"#youAreController\").hide();\n $j(\"#player2isController\").hide();\n }\n \n \/\/ after a few seconds, the round begins\n setTimeout(function(){\n $j('#player2image').attr('src', player2uri);\n $j('#player2image').show();\n $j(\"#avatarBox\").show();\n $j('#loadingMatch').hide();\n $j('#playRound').show();\n }, playerWaitTime); \n }\n }\n\n \/\/ show the player the give interface\n function giveInterface() {\n $j('#matchingPlayers').hide();\n $j('#playRound').hide();\n score = score + roundValue;\n $j(\"#rValueGiven\").text(roundValue);\n $j(\"#scoreValue\").text(score);\n $j(\"#giveInterface\").show();\n }\n \n \/\/ display to the player how many tickets they are giving away\n function outputUpdate(give) {\n document.querySelector('#currentGiveValue').value = give;\n }\n \n \/* wait for P2 to return tickets, give the controller the option to \n punish, and then end the round *\/\n function returnTickets(){\n \/\/ initialize variables\n var ticketsGiven = document.getElementById(\"giveNumber\").value;\n var p1amountKept = roundValue - ticketsGiven; \/\/ # of tickets P1 keeps?\n var tripleTickets = ticketsGiven * 3; \/\/ # of tickets given to P2?\n var returnPct; \/\/ what proportion of tickets does P2 return?\n var returnAmount; \/\/ what number of tickets does P2 return?\n var p2amountKept; \/\/ what number of tickets does P2 keep?\n var punishmentAmount = 0; \/\/ how many tickets is punishment worth?\n var playerWaitTime; \/\/ how long to wait for P2 to move\n var p2punish = false; \/\/ does P2 punish?\n \/\/ how many tickets does P2 want to not punish?\n var p2punishThreshold = Math.random() * (.15 * roundValue);\n\n gives[round - 1] = ticketsGiven;\n console.log(\"Round: \" + round + \"; Gives: \" +gives[round - 1]); \n \n \/\/ if P1 gave 0 tickets & P2 is not Controller, skip P2's turn \n if (ticketsGiven == 0 & controller != 2){\n $j(\"#giveInterface\").hide();\n $j(\"#noSharing\").show();\n returned[round - 1] = ticketsGiven;\n console.log(\"Round: \" + round + \"; Results, returned: \" + \n returned[round - 1]);\n endRound(0);\n } else { \/\/ P2's turn\n \/\/ determine how many tickets to return\/keep\n if (trainingCondition == 0 || controller == 0) {\n returnPct = Math.random() * (fairMax - fairMin) + fairMin; \n } else if (controller == 1) {\n returnPct = Math.random() * (stinMax - stinMin) + stinMin;\n } else {\n returnPct = Math.random() * (geneMax - geneMin) + geneMin; \n }\n returnAmount = Math.floor(tripleTickets * returnPct);\n returned[round - 1] = returnAmount; \/\/ store in array\n console.log(\"Round: \" + round + \"; Results, returns: \" + \n returned[round - 1]);\n console.log(returnAmount);\n p2amountKept = tripleTickets - returnAmount;\n \n \/\/ determine value of punishment\n if (controller == 1) {\n punishmentAmount = Math.round(p2amountKept \/ 3);\n } else if (controller == 2) {\n punishmentAmount = Math.round(p1amountKept \/ 3);\n }\n \n \/* Generate a random number from 2500 to 5000 that defines how\n many ms player waits before P2 returns tickets *\/\n playerWaitTime = Math.floor(Math.random() * 2500) + 2500;\n console.log(playerWaitTime);\n \n \/\/ update score to reflect tickets given\n score = score - ticketsGiven;\n $j(\"#scoreValue\").text(score);\n \n \/\/ tell P1 to wait for return\n $j(\"#giveInterface\").hide();\n $j(\"#gaveNumber\").text(ticketsGiven);\n $j(\"#receiveNumber\").text(tripleTickets);\n $j(\"#returnedTickets\").hide();\n $j(\"#waitForReturn\").show();\n if (controller == 2) {\n $j(\"#p2decidesToPunish\").show();\n };\n $j(\"#waitForMove\").show();\n \n \/\/ after 2.5-5s, P2 sends tickets back & punishes if Controller\n setTimeout(function(){\n if (controller == 2) {\n if (ticketsGiven < p2punishThreshold) {\n score = score - punishmentAmount;\n punish = 1;\n $j(\"#player2punished\").show();\n $j(\"#player2spared\").hide();\n } else {\n $j(\"#player2punished\").hide();\n $j(\"#player2spared\").show();\n }\n }\n score = score + returnAmount;\n $j(\"#scoreValue\").text(score);\n $j(\"#waitForMove\").hide();\n $j(\"#p2decidesToPunish\").hide();\n $j(\"#returnedNumber\").text(returnAmount);\n $j(\"#p1punishmentNumber\").text(punishmentAmount);\n $j(\"#p2punishmentNumber\").text(punishmentAmount);\n $j(\"#returnedTickets\").show();\n $j(\"#scoreValue\").text(score);\n $j(\"#showEndButton\").hide();\n \n \/* if the player is the controller, give option to punish;\n otherwise, end the round *\/\n if (controller == 1){\n $j(\"punishmentNumber\").text(punishmentAmount);\n $j(\"lostNumber\").text(punishmentAmount);\n $j(\"#controllerOption\").show();\n } else {\n endRound(0);\n }\n }, playerWaitTime);\n }\n }\n \n \/\/ display the final results of the round and allow the player to end it\n function endRound(punished){ \n punishes[round - 1] = punished;\n console.log(\"Round: \" + round + \"; Results, punishes: \" + \n punishes[round - 1]);\n $j(\"#controllerOption\").hide();\n round = round + 1;\n if (punished == 1){\n $j(\"#controllerOption\").hide();\n $j(\"#showEndButton\").show();\n $j(\"#punishmentSuccess\").show();\n } else {\n $j(\"#showEndButton\").show();\n }\n }","DefaultChoices":false,"DataExportTag":"game","QuestionType":"MC","Selector":"SAVR","SubSelector":"TX","Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Please wait for the game to load. You Round Tickets Player 2 You have been given raffle tickets....","Choices":{"2":{"Display":"<span style=\"font-size:30px;\">Continue<\/span>"}},"ChoiceOrder":["2"],"Validation":{"Settings":{"ForceResponse":"OFF","ForceResponseType":"ON","Type":"None"}},"RecodeValues":{"2":"1"},"GradingData":[],"Language":[],"QuestionID":"QID3","DataVisibility":{"Private":false,"Hidden":false}}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"SQ","PrimaryAttribute":"QID31","SecondaryAttribute":"This next activity involves tickets to win the raffle for $50. Remember, the more tickets you hav...","TertiaryAttribute":null,"Payload":{"QuestionText":"<div><span style=\"font-size: 19px;\">This next activity involves tickets to win the raffle for $50. Remember, the more tickets you have at the end of the survey, the better your chances to win the raffle.<\/span><\/div><div><span style=\"font-size: 19px;\"><br><\/span><\/div><div><span style=\"font-size: 19px;\">Remember that the tickets have value: The more of them you accumulate, the better your chances of winning the bonus. Likewise, the more tickets other survey takers accumulate, the better for them.<\/span><\/div>","DefaultChoices":false,"DataExportTag":"rafflevalu","QuestionType":"DB","Selector":"TB","Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"This next activity involves tickets to win the raffle for $50. Remember, the more tickets you hav...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"QuestionID":"QID31"}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"SQ","PrimaryAttribute":"QID35","SecondaryAttribute":"Timing","TertiaryAttribute":null,"Payload":{"QuestionText":"Timing","DefaultChoices":false,"DataExportTag":"gametime","QuestionType":"Timing","Selector":"PageTimer","Configuration":{"QuestionDescriptionOption":"UseText","MinSeconds":"0","MaxSeconds":"0"},"QuestionDescription":"Timing","Choices":{"1":{"Display":"First Click"},"2":{"Display":"Last Click"},"3":{"Display":"#QuestionText, TimingPageSubmit#"},"4":{"Display":"#QuestionText, TimingClickCount#"}},"GradingData":[],"Language":[],"QuestionID":"QID35"}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"SQ","PrimaryAttribute":"QID6","SecondaryAttribute":"Welcome to the study! We are interested in the relationships among many different things. You wil...","TertiaryAttribute":null,"Payload":{"QuestionText":"<span style=\"font-size:19px;\">Welcome to the study!<br>\n<br>\nWe are interested in the relationships among many different things. You will asked to recall an event from your past and to complete some questionnaires about yourself. <\/span>\n<div> <\/div>\n\n<div><span style=\"font-size: 19px;\">Participants in this study also have the opportunity to win a raffle with a <strong>bonus payment of $50.<\/strong> Raffle tickets will be awarded based on your choices during some of the survey activities. <strong>The more raffle tickets you have at the end of the survey, the better your chances of winning the raffle and getting the $50 bonus payment.<\/strong> <\/span><\/div><div><span style=\"font-size: 19px;\"><br><\/span>\n\n<div><span style=\"font-size:19px;\">Press the continue button to begin.<\/span><\/div>\n<\/div>","DefaultChoices":false,"DataExportTag":"welcome","QuestionType":"DB","Selector":"TB","Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"Welcome to the study! We are interested in the relationships among many different things. You wil...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"QuestionID":"QID6"}},{"SurveyID":"SV_3lWMNSbIlB2K9Vj","Element":"SQ","PrimaryAttribute":"QID32","SecondaryAttribute":"You will be randomly assigned to the role of Player 1 or Player 2 for the duration of the activit...","TertiaryAttribute":null,"Payload":{"QuestionText":"<div><span style=\"font-size: 19px;\">You will be randomly assigned to the role of Player 1 or Player 2 for the duration of the activity. The activity consists of 30 rounds of a game.<\/span><\/div>\n\n<div> <\/div>\n\n<div><span style=\"font-size: 19px;\">Each round, Player 1 will be given 100 raffle tickets.<\/span><\/div>\n\n<div> <\/div>\n\n<div><span style=\"font-size: 19px;\">Player 1 may choose to give away some or all of these tickets to Player 2. The tickets given to Player 2 will be <strong>tripled<\/strong><strong>. <\/strong>So, for example, if Player 1 gives 50 tickets to Player 2, Player 2 will actually receive 150 tickets. <\/span><\/div>\n\n<div> <\/div>\n\n<div><span style=\"font-size: 19px;\">Then, Player 2 may choose to return to Player 1 as many of the tripled tickets as they would like. In the example above, if Player 2 returned 50 of the tripled tickets, both players would have 100 tickets. <\/span><\/div>\n\n<div> <\/div>\n\n<div><span style=\"font-size: 19px;\"><strong>Whether you are Player 1 or Player 2 will stay the same throughout the game, but you will be paired with different, randomly assigned, people in each round.<\/strong><\/span><\/div>","DefaultChoices":false,"DataExportTag":"gameinstru","QuestionType":"DB","Selector":"TB","Configuration":{"QuestionDescriptionOption":"UseText"},"QuestionDescription":"You will be randomly assigned to the role of Player 1 or Player 2 for the duration of the activit...","ChoiceOrder":[],"Validation":{"Settings":{"Type":"None"}},"GradingData":[],"Language":[],"QuestionID":"QID32"}}]}