Skip to content

Commit

Permalink
fix: or instead of and
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBarton446 committed Apr 8, 2024
1 parent f802bbc commit 1883aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shogi-ai/mcts_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def select_action(self):
# Seed initial expansion
self._expansion(self.env.board, self.tree)

while time_delta < self.time_limit and self.games_simulated < 1000:
while time_delta < self.time_limit or self.games_simulated < 1000:
time_delta = time.time() - start_time
node_to_simulate = self._selection()
self._simulation(node_to_simulate)
Expand Down

0 comments on commit 1883aa3

Please sign in to comment.