Coverage for banco_imobiliario/board/player_demanding.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 PlayerDemanding(BasePlayer):
5 '''
6 O jogador exigente compra qualquer
7 propriedade, desde que o valor do aluguel
8 dela seja maior do que 50.
9 '''
10 def _roles_to_payment(self, patrimony):
11 if patrimony.rental_price > 50:
12 self.paid(patrimony.property_price, patrimony.type_of_strategy)
13 return True
14 return False