Spaces:
Paused
Paused
Download trust_simple/tests.py from BPEL/otree-server: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/BPEL/otree-server/resolve/main/trust_simple/tests.py
- Command line
-
hf download hf://spaces/BPEL/otree-server/trust_simple/tests.py
-
curl -L -o tests.py https://huggingface.co/spaces/BPEL/otree-server/resolve/main/trust_simple/tests.py
378 Bytes
| 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 | |