from otree.api import ( models, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Yang Zhong' doc = """ Sliding Puzzle experiment. """ class Constants(BaseConstants): name_in_url = 'sliding_puzzle_test_pilot3_wo' players_per_group = None num_rounds = 4 instructions_template = 'sliding_puzzle_test_pilot3_wo/instructionstemplate.html' instruction_template2 = 'sliding_puzzle_test_pilot3_wo/instructionstemplateforgame.html' class Subsession(BaseSubsession): pass class Player(BasePlayer): puzzle_solved = models.BooleanField(initial=False) total_payoff = models.FloatField(min=0, max=50) time_spent = models.FloatField() num_of_moves = models.IntegerField(max=14) min_num_of_moves = models.IntegerField() board_history = models.LongStringField() deduction_per_second = models.FloatField() deduction_per_move = models.FloatField() deduction_all_seconds = models.FloatField() deduction_all_moves = models.FloatField() time_between_moves = models.LongStringField() endowment = models.FloatField() paying_round = models.IntegerField() final_payoff = models.FloatField(min=0, max=50) final_payoff1 = models.FloatField(min=0,max=50) deduction_per_second_cents = models.IntegerField() deduction_per_move_cents = models.IntegerField() bonus = models.IntegerField() class Group(BaseGroup): pass