Skip to content

Commit

Permalink
TicTacToe: fix the comments for check_for_winner (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
helpingstar authored Jan 11, 2024
1 parent aa65027 commit cdbecd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pettingzoo/classic/tictactoe/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def calculate_winners(self):

# returns:
# -1 for no winner
# 0 -- agent 0 wins
# 1 -- agent 1 wins
# 1 -- agent 0 wins
# 2 -- agent 1 wins
def check_for_winner(self):
winner = -1
for combination in self.winning_combinations:
Expand Down

0 comments on commit cdbecd7

Please sign in to comment.