Skip to content

Commit

Permalink
changed elixir to type float
Browse files Browse the repository at this point in the history
  • Loading branch information
lunathanael committed Mar 12, 2024
1 parent 138a8e1 commit 653d70b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clash_royale/envs/game_engine/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def reset(self, elixir: int = 5) -> None:
TODO: implement deck shuffling
"""

self.elixir: int = elixir
self.elixir: float = elixir

def get_pseudo_legal_cards(self) -> List[Card]:
"""
Expand All @@ -53,7 +53,7 @@ def get_pseudo_legal_cards(self) -> List[Card]:

return legal_cards

def step(self,
def step(self,
elixir_rate: float,
frames: int=1) -> None:
"""
Expand Down

0 comments on commit 653d70b

Please sign in to comment.