Test_Johanne/dictator/tests.py
2025-03-06 10:33:03 +01:00

14 lines
371 B
Python

from otree.api import Currency as c, currency_range, expect, Bot
from . import *
class PlayerBot(Bot):
def play_round(self):
yield Introduction
if self.player.id_in_group == 1:
yield Offer, dict(kept=cu(99))
expect(self.player.payoff, cu(99))
else:
expect(self.player.payoff, cu(1))
yield Results