We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7298ef commit f30cb8fCopy full SHA for f30cb8f
1 file changed
src/Game.py
@@ -80,7 +80,7 @@ def next_turn(self) -> None:
80
81
def is_terminal(self) -> bool:
82
return all(self._performed_the_last_move.values()) or (
83
- not self.get_possible_actions()
+ not any(move for move in self.all_moves if move.is_valid(self))
84
)
85
86
def get_results(self) -> dict[int, int]:
0 commit comments