Test_Johanne/dictator_modif/tests.py

19 lines
413 B
Python
Raw Normal View History

2025-03-06 10:28:01 +01:00
from otree.api import Currency as c, currency_range
from . import pages
from ._builtin import Bot
from .models import Constants
class PlayerBot(Bot):
def play_round(self):
yield (pages.Introduction)
if self.player.id_in_group == 1:
yield (pages.Send, {"sent_amount": 4})
else:
yield (pages.SendBack, {'sent_back_amount': 8})
yield (pages.Results)