Skip to content

Commit f30cb8f

Browse files
committed
Finished optimizing
1 parent b7298ef commit f30cb8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def next_turn(self) -> None:
8080

8181
def is_terminal(self) -> bool:
8282
return all(self._performed_the_last_move.values()) or (
83-
not self.get_possible_actions()
83+
not any(move for move in self.all_moves if move.is_valid(self))
8484
)
8585

8686
def get_results(self) -> dict[int, int]:

0 commit comments

Comments
 (0)