sort players by wallet
This commit is contained in:
parent
23f2bbd4bd
commit
6364a54979
@ -280,7 +280,7 @@ class Player:
|
||||
def __repr__(self) -> str:
|
||||
_nl = "\n\t" # custom newline character
|
||||
return (
|
||||
f"Player(id={self.id}, budget={self.budget}, wallet={self.wallet},"
|
||||
f"Player(id={self.id}, budget={self.budget}, wallet={self.wallet}, "
|
||||
+ f"num_placements={len(self.strategy.placements)}, "
|
||||
+ f"strategy_budget={self.strategy.budget}, "
|
||||
+ f"strategy_cost={self.strategy.value}"
|
||||
@ -289,7 +289,7 @@ class Player:
|
||||
)
|
||||
|
||||
def __lt__(self, other):
|
||||
return self.id < other.id
|
||||
return self.wallet < other.wallet
|
||||
|
||||
|
||||
def expected(bet: Bet) -> float:
|
||||
|
Loading…
Reference in New Issue
Block a user