Skip to content

Commit

Permalink
remove some end-of-line whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
beauxq committed Aug 12, 2024
1 parent 006f3ff commit 35b08e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ def has_from_list(self, items: Iterable[str], player: int, count: int) -> bool:
if found >= count:
return True
return False

def has_from_list_unique(self, items: Iterable[str], player: int, count: int) -> bool:
"""Returns True if the state contains at least `count` items matching any of the item names from a list.
Ignores duplicates of the same item."""
Expand All @@ -824,7 +824,7 @@ def has_from_list_unique(self, items: Iterable[str], player: int, count: int) ->
def count_from_list(self, items: Iterable[str], player: int) -> int:
"""Returns the cumulative count of items from a list present in state."""
return sum(self.prog_items[player][item_name] for item_name in items)

def count_from_list_unique(self, items: Iterable[str], player: int) -> int:
"""Returns the cumulative count of items from a list present in state. Ignores duplicates of the same item."""
return sum(self.prog_items[player][item_name] > 0 for item_name in items)
Expand Down

0 comments on commit 35b08e3

Please sign in to comment.