Skip to content

Commit

Permalink
finished linting player
Browse files Browse the repository at this point in the history
  • Loading branch information
lunathanael committed Mar 12, 2024
1 parent 18e8a10 commit 09ea9ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clash_royale/envs/game_engine/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def play_card(self, card_index: int) -> None:

assert card_index >= 0 and card_index < 4
elixir_cost: float = self.hand[card_index].elixir_cost
assert(elixir_cost <= self.elixir)

assert elixir_cost <= self.elixir
self.pop(card_index)
self.elixir -= elixir_cost

0 comments on commit 09ea9ba

Please sign in to comment.