Coverage for banco_imobiliario/board/player_cautious.py : 86%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from .base import BasePlayer
4class PlayerCautious(BasePlayer):
5 '''
6 O jogador cauteloso compra qualquer
7 propriedade desde que ele tenha uma
8 reserva de 80 saldo sobrando
9 depois de realizada a compra.
10 '''
11 def _roles_to_payment(self, patrimony):
12 if (self.money - patrimony.property_price) >= 80:
13 self.paid(patrimony.property_price, patrimony.type_of_strategy)
14 return True
15 return False