from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants import random class PlayerBot(Bot): def play_round(self): yield pages.Instructions yield pages.Ind_ex yield pages.Ind, dict(ind2=random.choice(Constants.choices_ind),ind3=random.choice(Constants.choices_ind), ind4=random.choice(Constants.choices_ind),ind5=random.choice(Constants.choices_ind), ind6=random.choice(Constants.choices_ind),ind7=random.choice(Constants.choices_ind), ind8=random.choice(Constants.choices_ind),ind9=random.choice(Constants.choices_ind), ind10=random.choice(Constants.choices_ind),ind11=random.choice(Constants.choices_ind), ind12=random.choice(Constants.choices_ind),ind13=random.choice(Constants.choices_ind), ind14=random.choice(Constants.choices_ind),) #ind15=random.choice(Constants.choices_ind), #ind16=random.choice(Constants.choices_ind),ind17=random.choice(Constants.choices_ind), #ind18=random.choice(Constants.choices_ind),ind19=random.choice(Constants.choices_ind), #ind20=random.choice(Constants.choices_ind),ind21=random.choice(Constants.choices_ind), #ind22=random.choice(Constants.choices_ind),) yield pages.Ded_ex yield pages.Ded, dict(ded1=random.choice(Constants.choices_ded),ded2=random.choice(Constants.choices_ded), ded3=random.choice(Constants.choices_ded),ded4=random.choice(Constants.choices_ded), ded5=random.choice(Constants.choices_ded),ded6=random.choice(Constants.choices_ded), ded7=random.choice(Constants.choices_ded),ded8=random.choice(Constants.choices_ded),) yield pages.Ccat_ex yield pages.Ccat, dict(#ccat1=random.choice(["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"]), ccat2=random.choice(["A", "B", "C", "D", "E",]), #ccat3=random.choice([1,2,3,4,5,6,]), ccat4=random.choice(["Finger", "Zehen", "Bein", "Knöchel", "Schuh"]), #ccat5=random.choice(["1 km/h", "2km/h", "3km/h", "4km/h", "5km/h", "6km/h",]), ccat6=random.choice(["links", "mitte", "rechts"]), ccat7=random.choice([0,3,6,12,14]), ccat8=random.choice([100, 121, 144, 169, 196]), ccat9=random.choice(["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"]), ccat10=random.choice([7,8,9,10,11]),) yield pages.Done