Spaces:
Paused
Paused
File size: 378 Bytes
e40dce0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from otree.api import Bot, Submission, cu
from . import Introduction, Send, SendBack, Results
class PlayerBot(Bot):
def play_round(self):
yield Introduction
if self.player.id_in_group == 1:
yield Submission(Send, dict(sent_amount=cu(3)))
else:
yield Submission(SendBack, dict(sent_back_amount=cu(4)))
yield Results
|