예제 #1
0
    def play(self):

        # Introduction
        self.submit(views.Introduction)

        # player: bid
        self.submit(views.Bid, {"bid_amount": random.choice(currency_range(Constants.min_allowable_bid, Constants.max_allowable_bid, 1))})

        # results
        self.submit(views.Results)
예제 #2
0
파일: views.py 프로젝트: danorama/oTree
 def sent_back_amount_choices(self):
     return currency_range(c(0), self.group.sent_amount * Constants.multiplication_factor, c(1))
예제 #3
0
파일: models.py 프로젝트: BYXS/oTree
 def sp_choices(self):
     return currency_range(0, self.cash, 0.5)
예제 #4
0
 def bp_choices(self):
     return currency_range(0, self.player.cash, 0.5)
예제 #5
0
 def sent_back_amount_choices(self):
     return currency_range(c(0),
                           self.group.sent_amount * Constants.mult_factor,
                           c(5))