from otree.api import Currency as c, currency_range from . import views from ._builtin import Bot from .models import Constants class PlayerBot(Bot): def play_round(self): yield (views.CognitiveReflectionTest, { 'q_AttCommunity1': 5, 'q_AttCommunity2': 5, 'q_AttCommunity3': 5, 'q_AttMember1': 5, 'q_AttMember2': 5, 'q_AttMember3': 5, 'q_SociallyAppro': 10, 'q_SociallyInAppro': 10 }) yield (views.Demographics, {'q_country': 'BS', 'q_age': 24, 'q_gender': 'Male', 'q_Ethnicity': 'African American/Black', 'q_ClassStatus': 'Freshman', 'q_Major': 'Accountancy'}) for value in [ self.player.q_AttCommunity1, self.player.q_country, self.player.payoff ]: assert value is not None